@import url("https://use.typekit.net/pla6ury.css");

/* -------------------------- */
/* Custom properties          */
/* -------------------------- */

:root {
  /* colors */

  --clr-muted: 210 6% 63%;
  --clr-positive: 145 46% 51%;
  --clr-negative: 0 88% 68%;
  --clr-primary: 0 100% 37%;

  /* dark mode */
  --clr-dark: 0 0% 11%;
  --clr-background: 0 0% 8%;
  --clr-text: 0 0% 91%;
  --clr-alt-text: 0 0% 91%;
  --clr-toggle: linear-gradient(180deg, #777, #3a3a3a);

  /* font-sizes */
  --fs-900: 9.375rem;
  --fs-800: 6.25rem;
  --fs-700: 3.5rem;
  --fs-600: 2rem;
  --fs-500: 1.75rem;
  --fs-400: 1.125rem;
  --fs-300: 1rem;
  --fs-200: 0.875rem;

  /* radius */
  --radius: 16px;
  --radius-sm: 10px;

  /* borders */
  --border: 1px solid rgba(255, 255, 255, 0.06);

  --filter: grayscale(100%) brightness(50%);
  --brighten: brightness(150%);
}

[data-theme="light"] {
  --clr-dark: 0 0% 100%;
  --clr-background: 0 0% 100%;
  --clr-text: 0 0% 8%;
  --clr-primary: 0 100% 56%;
  --clr-muted: 210 6% 43%;
  --clr-alt-text: 0 0% 100%;
  --border: 1px solid rgb(229, 229, 229);
  --clr-toggle: linear-gradient(180deg, #ffcc89, #d8860b);
  --filter: grayscale(100%) opacity(0.25);
  --brighten: brightness(80%);
}

/* -------------------------- */
/* Reset                      */
/* -------------------------- */

/* Box sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Reset margins */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
picture {
  margin: 0;
}

/* Set up the body */
html,
body {
  line-height: 1.5;
  min-height: 100vh;
}

body {
  font-family: "acumin-pro", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  font-size: var(--fs-400);
  background: hsl(var(--clr-background));
  color: hsl(var(--clr-text));
}

img,
picture {
  max-width: 100%;
  display: block;
}

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

/* Remove animations for people who've turned them off */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* -------------------------- */
/* Utility classes            */
/* -------------------------- */

.flex {
  display: flex;
  gap: var(--gap, 1rem);
}

.grid {
  display: grid;
  gap: var(--gap, 1rem);
}

.container {
  width: min(1200px, 100% - 32px);
  padding-inline: 1em;
  margin-inline: auto;
}

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

.content {
  padding-top: 10px !important;
  transition: padding 0.4s cubic-bezier(0.65, 0, 0.35, 1);
  padding: 0px 0 64px;
}

/* colors */

.bg-dark {
  background-color: hsl(var(--clr-dark));
}
.bg-primary {
  background-color: hsl(var(--clr-primary));
}
.bg {
  background-color: hsl(var(--clr-background));
}

.text-white {
  color: hsl(var(--clr-text));
}
.text-primary {
  color: hsl(var(--clr-primary));
}
.text-muted {
  color: hsl(var(--clr-muted));
}
.text-alt {
  color: hsl(var(--clr-alt-text));
}

.border {
  border: var(--border);
}
.border-radius {
  border-radius: var(--radius);
}
.border-radius-sm {
  border-radius: var(--radius-sm);
}

/* typography */

.letter-spacing-1 {
  letter-spacing: 4.75px;
}
.letter-spacing-2 {
  letter-spacing: 2.7px;
}
.letter-spacing-3 {
  letter-spacing: 2.35px;
}

.uppercase {
  text-transform: uppercase;
}

.fs-900 {
  font-size: var(--fs-900);
}
.fs-800 {
  font-size: var(--fs-800);
}
.fs-700 {
  font-size: var(--fs-700);
}
.fs-600 {
  font-size: var(--fs-600);
}
.fs-500 {
  font-size: var(--fs-500);
}
.fs-400 {
  font-size: var(--fs-400);
}
.fs-300 {
  font-size: var(--fs-300);
}
.fs-200 {
  font-size: var(--fs-200);
}

.fs-900,
.fs-800,
.fs-700,
.fs-600 {
  line-height: 1.1;
}

.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}

.flex-start {
  justify-content: flex-start;
}
.flex-end {
  justify-content: flex-end;
}

.flex-center {
  justify-content: center;
}

.width-100 {
  width: 100%;
}

.win {
  color: hsl(var(--clr-positive));
  font-weight: bold;
}

.loss {
  color: hsl(var(--clr-negative));
  font-weight: bold;
}

/* -------------------------- */
/* Components                 */
/* -------------------------- */

/* header */

.header-container {
  position: relative;
  height: 160px;
  transition: height 0.5s ease-out;
}

.main-header {
  height: 160px;
  transition: height 0.3s ease;
}

.header-inner {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 0;
  transition: all 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

.brand {
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  padding-bottom: 10px;
  transition: all 0.4s ease-out;
}

.logo {
  width: 64px;
  transition: all 0.4s ease-out;
}

.main-header.scrolled .main-header-top {
  display: none;
}

.main-header.scrolled .logo {
  transform: translateX(-20px);
  transition: all 0.3s ease-out 0.2s;
}

.main-header.scrolled .sport-nav .container {
  display: flex;
  align-items: center;
}

.main-header.scrolled .sport-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.main-header.scrolled .sport-nav .nav-inner {
  justify-content: flex-start;
  padding-left: 60px;
  height: inherit;
}

.main-header.scrolled .sport-nav .container::before {
  content: "";
  display: inline-block;
  background: url("images/878.svg") no-repeat center;
  background-size: 40px;
  width: 40px;
  height: 40px;
  margin-right: 24px;
}

.main-header.scrolled .nav-list {
  transform: translateX(0);
  padding: 0;
  margin-top: 1rem;
}

.sport-nav {
  position: relative;
  height: 64px;
  width: 100%;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.65, 0, 0.35, 1);
  box-shadow: 0 8px 14px rgba(0, 0, 0, 0.35) inset;
}

.nav-inner {
  display: flex;
  height: inherit;
  align-items: center;
  justify-content: space-between;
}

.nav-list {
  list-style: none;
  gap: 28px;
  padding: 10px 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
  transform: translateX(20px);
}

.nav-list a {
  color: hsl(var(--clr-alt-text));
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 10px 4px;
  border-bottom: 3px solid transparent;
  display: inline-block;
  white-space: nowrap;
}

.nav-list a:hover {
  border-bottom-color: var(--focus);
}

.nav-list a.active {
  border-bottom-color: var(--white);
}

.nav-list li {
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
  transition-delay: calc(0.05s * var(--i));
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: hsl(var(--clr-alt-text));
  cursor: pointer;
  z-index: 1100;
}

/* theme toggle */
.theme-container {
  display: flex;
  border: none;
  cursor: pointer;
  margin-top: 0;
  z-index: 1500;
  margin-left: auto;
  align-content: center;
}

.theme-label {
  width: 100px;
  height: 40px;
  position: relative;
  display: block;
  background: hsl(var(--clr-background));
  border-radius: 40px;
  box-shadow: inset 0px 5px 15px rgba(0, 0, 0, 0.4),
    inset 0px -5px 15px rgba(255, 255, 255, 0.4);
  cursor: pointer;
}

.theme-label:after {
  content: "";
  width: 36px;
  height: 36px;
  position: absolute;
  top: 2px;
  left: 2px;
  background: var(--clr-toggle);
  border-radius: 36px;
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
}

.theme-input {
  width: 0;
  height: 0;
  visibility: hidden;
}

.theme-input:checked + label:after {
  left: 98px;
  transform: translateX(-100%);
}

.theme-label,
.theme-label:after {
  transition: 0.5s;
}

.theme-label:active::after {
  width: 52px;
}

@media (max-width: 768px) {
  .main-header.scrolled .sport-nav .container {
    justify-content: space-between;
    align-items: center;
    padding-left: 0;
  }

  .main-header.scrolled .sport-nav .nav-inner {
    justify-content: center;
    padding: 0;
    flex: 1;
  }

  .main-header.scrolled .logo {
    transform: none;
  }

  .main-header.scrolled .sport-nav .container::before {
    margin: auto;
  }

  .nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .nav-toggle {
    display: block;
    position: absolute;
    left: 0%;
    top: 10%;
    padding-left: 1rem;
    z-index: 1500;
  }

  .main-header.scrolled .nav-list {
    margin: 0;
    margin-left: 1.1rem;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    background: hsl(var(--clr-dark));
    position: absolute;
    top: 64px;
    left: -19px;
    border-radius: var(border-radius);
    margin: 0;
    overflow-y: auto;
    width: 100%;
    height: calc(100vh);
  }

  .nav-list.show {
    display: flex;
    overflow-y: auto;
  }

  .nav-list a {
    display: block;
    color: var(--clr-text);
    text-align: center;
    width: 100%;
    padding: 1.2rem 0;
    font-size: 1.2rem;
    border-radius: var(--border-radius);
    transition: background 0.2s ease, transform 0.2s ease;
  }

  .nav-list a:hover {
    background: hsl(var(--clr-background));
  }

  .nav-list a:active {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(2px);
  }

  .theme-container {
    border: none;
    cursor: pointer;
    margin-top: 0;
    z-index: 1500;
    float: right;
  }

  .main-header.scrolled .theme-container {
    margin-left: -80px;
  }

  .theme-label {
    width: 80px;
  }

  .theme-input:checked + label:after {
    left: 78px;
  }

  .close {
    display: none;
  }

  .menu-open .nav-toggle .hamburger {
    display: none;
  }

  .menu-open .nav-toggle .close {
    display: block;
  }
}

/* main content - Home page */

.hero-grid {
  gap: 1rem;
  flex-wrap: wrap;
  align-items: stretch;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 2fr 1fr;
    align-items: start;
  }
}

.feature-card {
  flex: 2;
  flex-direction: column;
  gap: 1.25rem;
}

@media (max-width: 768px) {
  .feature-card .fs-700 {
    font-size: 1.2rem;
  }

  .feature-card .fs-600 {
    font-size: 1rem;
  }

  .feature-card .fs-300 {
    font-size: 0.85rem;
  }

  .feature-card .fs-200 {
    font-size: 0.75rem;
  }

  .feature-card .team-name {
    white-space: normal;
    text-align: center;
  }

  .feature-card .game-meta {
    font-size: 0.75rem;
    line-height: 1.3;
  }
}

@media (max-width: 480px) {
  .feature-card .fs-700 {
    font-size: 1rem;
  }

  .feature-card .fs-600 {
    font-size: 0.85rem;
  }

  .feature-card .fs-300 {
    font-size: 0.75rem;
  }

  .feature-card .fs-200 {
    font-size: 0.7rem;
  }

  .feature-card .team img {
    height: 24px;
    width: 24px;
    padding: 0;
    margin: -10px;
  }

  .feature-card .game-card {
    padding: 10px;
  }
}

#recent-game,
#next-game {
  justify-content: center;
}

.media-link {
  position: relative;
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.media-link picture,
.media-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* footer */

.site-footer {
  padding: 24px 0;
}

/* promo */

.promo-logos {
  padding: 6px 0;
}

.promo-logos .container {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
  mask-repeat: no-repeat;
  mask-size: 100% 100%;
}

.logos-track {
  display: flex;
  width: max-content;
}

.logos-slide {
  display: flex;
  align-items: center;
  animation: scrollLogos 25s linear infinite;
}

.logos-slide img {
  height: 30px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.8;
  transition: filter 0.3s, opacity 0.3s;
  padding-left: 2rem;
  padding-right: 2rem;
}

@keyframes scrollLogos {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* game card */

.game-card {
  padding: 20px;
  text-align: center;
  cursor: pointer;
}

.game-label {
  font-size: clamp(0.8rem, 2vw, 1.5rem);
  line-height: 1.2;
  margin: 0 0 8px;
  font-weight: 900;
}

.teams {
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  margin: 1rem 0;
  width: 100%;
}

.team {
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.team-info {
  gap: 0;
  flex-direction: column;
  align-items: flex-end;
}

.team-info .team-name {
  white-space: normal;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
}

.score {
  font-weight: 700;
}

.team-rank {
  vertical-align: super;
  margin-right: 4px;
}

.team-name {
  font-weight: bold;
}

.team img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.vs {
  font-weight: bold;
  flex-shrink: 0;
}

/* latest */

.latest {
  flex: 1;
  padding: 16px;
  max-height: 634px;
  flex-direction: column;
}

.latest-head {
  align-items: center;
  gap: 10px;
  padding: 2px 4px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 6px;
  flex-shrink: 0;
}

.utah-mark {
  width: 48px;
  height: 48px;
}

.latest-head h3 {
  font-weight: 900;
}

.latest-item {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 14px;
  padding: 14px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.latest-item:last-of-type {
  border-bottom: none;
}

@media (max-width: 1023px) {
  .hero-grid {
    flex-direction: column;
  }

  .feature-card,
  .latest {
    width: 100%;
    flex: none;
  }

  .feature-card {
    order: 1;
  }

  .latest {
    order: 2;
  }
}

.thumb {
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.thumb img {
  width: 100%;
  height: 100%;
}

.latest-meta h4 {
  margin: 0 0 4px;
  line-height: 1.25;
}

.latest-meta h4 a {
  color: var(--white);
  text-decoration: none;
}

.latest-meta h4 a:hover {
  text-decoration: underline;
}

.latest-meta .tag {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.latest-meta time {
  display: block;
  margin-top: 2px;
}

@media (max-width: 480px) {
  .latest {
    max-height: 100%;
  }

  .utah-mark {
    height: 36px;
    width: 36px;
  }
}

/* buzzing */
.buzzing {
  margin-top: 2rem;
}

.buzz-card-container {
  padding: 1rem;
}

.buzz-header {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.buzz-header h3 {
  font-weight: bold;
  text-transform: uppercase;
}

.buzz-controls button {
  border: none;
  padding: 0.3rem 0.6rem;
  margin-left: 0.3rem;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s;
}
.buzz-controls button:hover {
  background: #444;
}

.video-container {
  position: relative;
  width: 100%;
  max-height: 600px;
  border-radius: 8px;
  overflow: hidden;
}

.media-video {
  width: 100%;
  height: auto;
  max-height: 600px;
  display: block;
  border-radius: 8px;
  object-fit: contain;
}

.buzz-carousel-wrapper {
  overflow-x: hidden;
}

.buzz-carousel {
  gap: 1rem;
}

.buzz-card {
  flex: 0 0 280px;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.8rem;
  background-color: hsl(var(--clr-background));
}

.buzz-header-row {
  align-items: center;
  margin-bottom: 0.5rem;
}

.buzz-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  margin-right: 0.5rem;
}

.buzz-name-time {
  flex-direction: column;
  gap: 0;
}

.buzz-name {
  font-weight: bold;
}

.buzz-body p {
  margin: 0.5rem 0;
}

.buzz-body img {
  margin-top: 0.5rem;
}

.buzz-footer {
  margin-top: auto;
}

.buzz-footer a {
  color: #1d9bf0;
  text-decoration: none;
}

.buzz-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .buzz-carousel-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }

  .buzz-carousel {
    display: flex;
    gap: 1rem;
    transition: transform 0.3s ease-in-out;
    scroll-snap-type: x mandatory;
  }

  .buzz-card {
    scroll-snap-align: start;
  }
}

/* news page */

.page-title {
  margin: 1rem 0;
}

.news-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  padding: 20px 0;
}

.news-card {
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.news-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-card:hover .news-thumb img {
  transform: scale(1.05);
}

.news-source {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 700;
}

.news-content {
  padding: 16px;
}

.news-content h3 {
  margin: 0 0 8px;
  line-height: 1.4;
}

.news-content h3 a {
  text-decoration: none;
}

.news-content h3 a:hover {
  text-decoration: underline;
}

.news-excerpt {
  margin: 0 0 12px;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .news-list {
    grid-template-columns: 1fr;
  }
}

/* schedule page */

.schedule-standings-container {
  margin: 0;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

#schedule {
  margin: 2rem 0;
  margin-top: 1rem;
  overflow: hidden;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.schedule-header {
  grid-template-columns: 1fr 3fr 1fr 2fr;
  font-weight: bold;
  padding: 1rem;
  text-transform: uppercase;
}

.schedule-row {
  grid-template-columns: 1fr 3fr 1fr 2fr;
  align-items: center;
  padding: 1rem;
  transition: background 0.2s;
  cursor: pointer;
}

.schedule-row:hover {
  background: var(--secondary-tint10-color);
}

.schedule-row .date {
  font-weight: 800;
}

.schedule-row .matchup {
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.schedule-row .matchup img.logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.schedule-row .record {
  font-style: italic;
  margin-left: 4px;
}

/* standings */

#standings .record {
  text-align: center;
}

.schedule-row .status {
  font-weight: bold;
}

.schedule-row .win {
  color: hsl(var(--clr-positive));
  font-weight: bold;
}

.schedule-row .loss {
  color: hsl(var(--clr-negative));
  font-weight: bold;
}

#standings {
  margin: 2rem auto;
  margin-top: 1rem;
  overflow: hidden;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#standings .standings-header {
  grid-template-columns: 4fr 1fr 1fr;
  padding: 1rem;
  color: hsl(var(--clr-alt-text));
}

#standings .standings-header .conference {
  font-weight: bold;
}

#standings .standings-row {
  grid-template-columns: 3fr 1fr 1fr;
  padding: 0.6rem 1rem;
  align-items: center;
}

#standings .standings-row:hover {
  background: var(--secondary-tint10-color);
}

#standings .standings-team {
  align-items: center;
  gap: 10px;
  grid-template-columns: 0.5fr 0.8fr 0.2fr 3fr;
  align-items: center;
  padding: 0.22rem;
}

#standings img.logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

@media (max-width: 860px) {
  .schedule-standings-container {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    margin: 0;
    padding: 0;
    gap: 0rem;
  }

  .schedule-row .schedule-name {
    font-size: 0.75rem;
    font-weight: bold;
  }

  .schedule-row .location {
    display: none;
  }

  .schedule-header .location-header {
    display: none;
  }

  .schedule-header {
    grid-template-columns: 1fr 2.75fr 1fr;
  }

  .schedule-row .players {
    width: 100px;
  }

  .schedule-row {
    grid-template-columns: 0.5fr 3fr 1fr;
  }

  .schedule-row {
    padding: 0.75rem 0.5rem;
  }

  .schedule-row .fs-700 {
    font-size: 1rem;
  }

  .schedule-row .fs-600 {
    font-size: 0.85rem;
  }

  .schedule-row .fs-300 {
    font-size: 0.75rem;
  }

  .schedule-row .fs-200 {
    font-size: 0.7rem;
  }

  .schedule-row .date {
    font-size: 0.7rem;
  }

  #standings {
    margin-left: 0;
    margin-right: 0;
  }

  #standings .standings-row {
    grid-template-columns: 3fr 0.75fr 0.75fr;
    align-items: center;
  }
}

/* roseter */

#viewSelect {
  padding: 8px 12px;
  margin-bottom: 1.5rem;
  cursor: pointer;
}

#viewSelect:focus {
  outline: 2px solid var(--focus);
}

.search-container {
  position: relative;
  display: flex;
  align-items: center;
}

#playerSearch {
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  min-width: 250px;
  border: var(--border);
  margin-bottom: 1rem;
  margin-left: 1rem;
}

#playerSearch:focus {
  outline: none;
  border-color: hsl(var(--clr-primary));
}

.clear-search {
  position: absolute;
  right: 0.5rem;
  background: none;
  border: none;
  color: hsl(var(--clr-muted));
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.clear-search:hover {
  background: hsl(var(--clr-muted) / 0.2);
  color: hsl(var(--clr-white));
}

.search-info {
  margin: 0.5rem 0;
  color: hsl(var(--clr-muted));
  font-style: italic;
}

.no-results {
  text-align: center;
  padding: 2rem;
  color: hsl(var(--clr-muted));
  font-style: italic;
}

.roster-cards {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  padding-bottom: 20px;
}

.player-card {
  overflow: hidden;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.player-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.player-photo-wrap {
  position: relative;
  padding-top: 120%;
  overflow: hidden;
}

.pro-player-photo-wrap {
  position: relative;
  padding-top: 80%;
  overflow: hidden;
  background-size: 100%;
  background-position: center;
  background-repeat: no-repeat;
}

.background-logo {
  position: absolute;
  top: -10%;
  filter: var(--filter);
  background-blend-mode: multiply;
}

.player-photo,
.nfl-player-photo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  object-fit: cover;
  transform: translateY(0);
}

.nfl-player-photo {
  transform: scale(1.3);
}

.player-info {
  flex: 1;
  padding: 1rem;
  padding-top: 0;
  flex-direction: column;
  justify-content: flex-start;
  --gap: 0.5rem;
}

.player-info-header {
  justify-content: space-between;
  align-items: center;
}

.player-name {
  margin: 4px 0;
  text-transform: uppercase;
}

.number {
  font-weight: 600;
  margin-left: 4px;
}

.position {
  font-weight: 600;
  text-transform: uppercase;
}

.hometown {
  margin-top: auto;
}

.roster-list {
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1rem;
}

.player-list-item {
  align-items: stretch;
  overflow: hidden;
  cursor: pointer;
}

.player-list-left {
  flex-direction: row;
  align-items: center;
  gap: 0;
}

.jersey-box {
  font-weight: bold;
  width: 100%;
  text-align: center;
}

.player-list-left img {
  width: 100px;
  height: 130px;
  object-fit: cover;
}

.player-list-info {
  padding: 0.75rem;
  flex: 1;
}

.player-list-info h3 {
  margin: 0;
  font-weight: 700;
}

.player-list-info p {
  margin: 2px 0;
}

.player-list-info .line {
  justify-content: space-between;
  margin: 2px 0;
}

.player-list-info .line span {
  flex: 1;
  margin-right: 5px;
}

.year-pos {
  font-weight: 600;
}

.roster-table {
  overflow: hidden;
}

.roster-table table {
  width: 100%;
  border-collapse: collapse;
}

.roster-table th,
.roster-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.roster-table th {
  color: var(--white);
  font-weight: var(--fontweight-bold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.roster-table tr:last-child td {
  border-bottom: none;
}

.roster-table tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

.roster-table td:first-child {
  font-weight: var(--fontweight-bold);
}

@media (max-width: 768px) {
  .roster-cards {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
  }

  .roster-list {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
  }

  .player-list-item {
    grid-template-columns: 30px 1fr 50px 60px;
    gap: 8px;
  }

  .player-list-item span:nth-child(5),
  .player-list-item span:nth-child(6) {
    display: none;
  }

  .roster-table {
    overflow-x: auto;
  }

  .roster-table .fs-700 {
    font-size: 1rem;
  }

  .roster-table .fs-600 {
    font-size: 0.85rem;
  }

  .roster-table .fs-300 {
    font-size: 0.75rem;
  }

  .roster-table .fs-200 {
    font-size: 0.7rem;
  }
}

@media (max-width: 600px) {
  .roster-cards {
    grid-template-columns: 1fr;
  }

  .player-card {
    max-width: 100%;
  }

  .roster-table .fs-700 {
    font-size: 1rem;
  }

  .roster-table .fs-600 {
    font-size: 0.85rem;
  }

  .roster-table .fs-300 {
    font-size: 0.75rem;
  }

  .roster-table .fs-200 {
    font-size: 0.7rem;
  }
}

.sort-controls {
  margin-left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sort-controls select {
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: var(--border);
  background: hsl(var(--clr-dark));
  cursor: pointer;
}

.sort-controls button {
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: var(--border);
  background: hsl(var(--clr-dark));
  cursor: pointer;
}
.sort-controls button:hover {
  background: hsl(var(--clr-dark));
}

/* stats page */

/* leaders */

.leader-category {
  padding: 16px;
}

.leader-category h3 {
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 6px;
}

.top-leader {
  align-items: center;
  margin-bottom: 12px;
}

.top-leader img {
  width: 72px;
  height: 72px;
  margin-right: 12px;
  object-fit: cover;
  background: #222;
}

.leader-info {
  flex: 1;
}

.leader-name {
  font-weight: bold;
}

.leader-position {
  font-size: 0.8rem;
}

.leader-stat {
  font-weight: bold;
  text-align: right;
}

.other-leaders {
  border-top: 1px solid hsl(var(--clr-muted));
  padding-top: 8px;
}

.other-leader {
  justify-content: space-between;
  padding: 2px 0;
}

.other-leader .stat {
  font-weight: bold;
}

/* team stats */

#ranksContainer {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
}

.team-rankings-container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  width: 100%;
}

.category-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.category-header {
  margin: 0;
  padding: 0.5rem 0;
  border-bottom: 2px solid hsl(var(--clr-primary));
  font-weight: 700;
  font-size: var(--fs-400);
  color: hsl(var(--clr-text));
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.team-rankings.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin: 0;
  width: 100%;
}

.team-rankings {
  gap: 24px;
}

.team-rankings h4 {
  margin-bottom: 8px;
  color: hsl(var(--clr-text));
  border-bottom: 1px solid hsl(var(--clr-muted));
  padding-bottom: 4px;
}

.team-rankings-main,
.team-rankings-hidden {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.rank-item {
  background-color: hsl(var(--clr-dark));
  color: hsl(var(--clr-text));
  border-radius: var(--radius);
  border: var(--border);
  padding: .75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: fit-content;
}

.rank-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.rank-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.rank-name {
  line-height: 1.3;
  flex: 1;
}

.rank-number {
  font-weight: bold;
  margin-right: 6px;
}

.rank-bar {
  background: #333;
  height: 6px;
  border-radius: 4px;
  margin-top: 4px;
  overflow: hidden;
}

.rank-fill {
  height: 100%;
  border-radius: 3px;
  background: hsl(var(--clr-primary));
  transition: width 0.3s ease-in-out;
}

.show-more-btn {
  margin: 16px auto;
  display: block;
  padding: 10px 20px;
  background: hsl(var(--clr-dark));
  border-radius: var(--radius);
  border: var(--border);
  cursor: pointer;
  transition: background 0.2s ease;
}

.hidden-stats {
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin: 0;
}

.hidden-stats.expanded {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin: 0;
}

.show-more-btn:hover {
  background: hsl(var(--clr-primary));
  color: hsl(var(--clr-alt-text));
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

@media (max-width: 600px) {
  .top-leader img {
    width: 56px;
    height: 56px;
  }

  .leader-stat {
    font-size: 1rem;
  }

  #leaderContainer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .leader-category {
    width: 100%;
  }

  .top-leader {
    flex-direction: row;
    align-items: center;
  }

  .other-leaders .other-leader {
    justify-content: space-between;
  }
}

/* player stats */

.player-category {
  margin-bottom: 40px;
  padding: 1rem;
  width: inherit;
  overflow-x: auto;
}

.player-category h3 {
  margin-bottom: 10px;
  color: var(--primary-color);
}

.player-stats {
  width: 100%;
  border-collapse: collapse;
  background: var(--dark-gray);
  border-radius: 8px;
  overflow: hidden;
}

.player-stats thead {
  background: hsl(var(--clr-primary));
  color: hsl(var(--clr-alt-text));
}

.player-stats th,
.player-stats td {
  padding: 8px 12px;
  text-align: center;
  border-bottom: var(--border);
}

.player-stats tbody tr:nth-child(even) {
  background: hsl(var(--clr-dark));
}

.player-stats tbody tr:hover {
  background: hsl(var(--clr-muted) / 0.2);
  color: hsl(var(--clr-text));
}

@media (max-width: 600px) {
}

/* matchup */

.matchup-overview {
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
}

@media (max-width: 900px) {
  .matchup-overview {
    grid-template-columns: 1fr;
  }

  .game-info {
    margin-top: 1rem;
  }
}

.matchup-header {
  justify-content: center;
  align-items: center;
}

.team img {
  width: 60px;
  height: 60px;
}

#game-info {
  padding: 1rem;
}

/* weather */

.weather-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
  text-align: center;
}

.weather-item .value {
  font-size: 1rem;
  font-weight: 600;
}

.weather-item .label {
  font-size: 0.8rem;
}

/* matchup game */

.game-details {
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: center;
}

.general-info {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 0.8rem;
}

.general-item {
  margin-bottom: 0.8rem;
  text-align: center;
}

.general-item .label {
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.general-item .content {
  color: #ccc;
}

.general-info {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
  .matchup-header .team {
    padding: 0;
    gap: 0;
    margin: 0;
  }

  .matchup-header .fs-700 {
    font-size: 1.2rem;
  }

  .matchup-header .fs-600 {
    font-size: 1rem;
  }

  .matchup-header .fs-300 {
    font-size: 0.85rem;
  }

  .matchup-header .fs-200 {
    font-size: 0.75rem;
  }
}

/* matchup news */

.news-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
}

.news-grid-nfl {
  column-count: 3;
  column-gap: 1rem;
  width: 100%;
}

.news-card-nfl {
  break-inside: avoid;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 0;
  display: inline-block;
  width: 100%;
}

.news-header {
  align-items: center;
  padding: 0.6rem;
  gap: 0.5rem;
}

.author-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.author-info {
  flex: 1;
  flex-direction: column;
  gap: 0;
}

.author-name {
  font-weight: bold;
}

.twitter-icon {
  font-size: 1rem;
  color: #1da1f2;
}

.news-media {
  position: relative;
  display: block;
}

.media-img {
  width: 100%;
  display: block;
}

.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  padding: 0.6rem 0.9rem;
}

.news-body {
  padding: 0.8rem;
  flex-direction: column;
  gap: 0.4rem;
}

/* matchup team stats*/

.team-header {
  align-items: center;
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 10px;
}

.left-header {
  justify-content: flex-start;
  text-align: left;
}

.right-header {
  justify-content: flex-end;
  text-align: right;
}

.team-header img.team-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.left-header img.team-logo {
  margin-right: 8px;
}

.right-header img.team-logo {
  margin-left: 8px;
}

.team-stats-grid {
  grid-template-columns: 1fr auto 1fr;
  gap: 0.75rem 1rem;
  align-items: center;
  padding: 1rem;
}

.team-stat {
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.stat-bar {
  flex: 1;
  height: 6px;
  background: hsl(var(--clr-text));
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
}

.stat-value {
  font-weight: bold;
  min-width: 2.5rem;
}

.team-logo {
  height: 20px;
}

/* matchup leaders */

.leaders-grid {
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}

.leader-cell img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.category-cell {
  text-align: center;
  font-weight: bold;
}

.game-leaders .gl-category {
  margin-bottom: 1.5rem;
  border-radius: 8px;
  background: var(--black-2);
  overflow: hidden;
}

.game-leaders .gl-header {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  font-weight: bold;
}

.game-leaders .gl-row {
  align-items: center;
  padding: 0.75rem 1rem;
  padding-left: 0.25rem;
  border-top: 1px solid #333;
  gap: 1rem;
}

.game-leaders .gl-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 50px;
}

.game-leaders .gl-team-logo {
  width: 28px;
  height: 28px;
  margin-bottom: 4px;
}

.game-leaders .gl-jersey {
  font-size: 0.85rem;
  color: hsl(var(--clr-muted));
}

.game-leaders .gl-player {
  align-items: center;
  gap: 0.75rem;
}

.game-leaders .gl-headshot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.game-leaders .gl-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.game-leaders .gl-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: hsl(var(--clr-text));
}

.game-leaders .gl-stats {
  font-size: 0.85rem;
  color: hsl(var(--clr-muted));
}

.stats-leaders-container {
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  padding-top: 1rem;
  margin-bottom: 2rem;
}

.stats-row-header {
  text-align: center;
}

@media (max-width: 900px) {
  .stats-leaders-container {
    grid-template-columns: 1fr;
  }

  .game-leaders {
    margin-top: 1rem;
  }
}

/* matchup boxscore */

.boxscore {
  margin-top: 2rem;
}

.team-boxscore {
  margin-bottom: 2rem;
  width: 100%;
  overflow: auto;
}

.team-title {
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 1rem;
  padding-top: 1rem;
}

.team-logo {
  width: 40px;
  height: 40px;
}

.boxscore-table-container {
  display: block;
  overflow-x: auto;
  overflow-y: hidden;
  margin-bottom: 1.5rem;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  border-radius: var(--radius);
}

.boxscore-table {
  border-collapse: collapse;
  width: max-content;
  min-width: 100%;
  margin: 0;
  border-radius: var(--radius);
  border: var(--border);
  overflow: hidden;
}

.boxscore-table th,
.boxscore-table td {
  border: var(--border);
  text-align: center;
  padding: 0.25rem;
}

.boxscore-table th:first-child,
.boxscore-table td:first-child {
  text-align: left;
}

.boxscore-table tbody th {
  font-weight: 100;
  font-style: italic;
  text-align: left;
  position: relative;
}

#boxscore-container .player-headshot,
#playerStatsContainer .player-headshot {
  width: 48px;
  height: 48px;
  object-fit: cover;
}

.totals-row {
  font-weight: bold;
  background: hsl(var(--clr-muted) / 0.1);
  border-radius: var(--radius);
  border: var(--border);
}

.team-switcher {
  display: none;
}

@media (max-width: 900px) {
  .team-boxscore {
    display: none;
  }

  .team-boxscore.active {
    display: block;
  }

  .team-title {
    display: none;
  }

  .team-switcher {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    background: hsl(var(--clr-dark));
    border: var(--border);
    border-radius: 999px;
    overflow: hidden;
    padding: 0.25rem;
  }

  .team-switcher::before {
    content: "";
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 4px;
    width: calc(50.5% - 6px);
    background: hsl(var(--clr-background));
    border-radius: 999px;
    transition: transform 0.3s ease;
    z-index: 0;
  }

  .team-switcher.right-active::before {
    transform: translateX(100%);
  }

  .team-switcher button {
    flex: 1;
    padding: 0.6rem;
    text-align: center;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    position: relative;
    z-index: 1;
    border-radius: 999px;
    color: hsl(var(--clr-text));
    transition: color 0.3s ease;
  }

  .team-switcher button img {
    width: 24px;
    height: 24px;
  }

  .team-switcher button.active {
    color: hsl(var(--clr-text));
  }

  .team-switcher button:not(.active) {
    color: hsl(var(--clr-muted));
  }

  .player-cell img {
    display: none;
  }
}

/* matchup tabs */

.matchup-tabs {
  gap: 1rem;
  margin-bottom: 1rem;
}

.tab-button {
  padding: 0.5rem 1rem;
  background: hsl(var(--clr-dark));
  color: hsl(var(--clr-text));
  border: none;
  cursor: pointer;
  border-radius: 5px;
}

.tab-button.active {
  background: hsl(var(--clr-primary));
  color: hsl(var(--clr-alt-text));
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

#gameDropdown {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#weekSelect {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* quarter score */

.score-by-quarter {
  padding: 1rem;
  margin-bottom: 1rem;
}

.quarter-table {
  width: 100%;
  table-layout: fixed;
}

.quarter-table th,
.quarter-table td {
  padding: 0.6rem 0.8rem;
  text-align: center;
}

.quarter-table th {
  font-weight: 600;
}

.quarter-table td {
  border-top: 1px solid #444;
}

.quarter-table td:first-child,
.quarter-table th:first-child {
  text-align: left;
  padding-left: 0.6rem;
  padding-right: 1rem;
  width: 35%;
}

.quarter-table th:not(:first-child),
.quarter-table td:not(:first-child) {
  width: calc(65% / 5);
}

.team-logo-sm {
  height: 48px;
  vertical-align: middle;
  display: inline-block;
  margin-right: 6px;
}

.team-cell span {
  white-space: nowrap;
}

.boxscore-wrapper {
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  width: 100%;
  overflow: hidden;
}

@media (max-width: 900px) {
  .boxscore-wrapper {
    grid-template-columns: 1fr;
  }
  .news-grid-nfl {
    column-count: 2;
  }
}

.no-stats-message {
  padding: 1rem;
  text-align: center;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.player-cell {
  align-items: center;
  gap: 0.5rem;
}

.boxscore-table .player-cell a {
  text-decoration: none;
}

/* play by play */

.quarter-header {
  padding: 0.5rem 1rem;
  margin: 1rem 0 0.5rem;
}

.drive {
  margin-bottom: 0.5rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.drive.expanded {
  margin-bottom: 1rem;
}

.drive-header {
  padding: 0.75rem;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
  transition: background-color 0.2s;
}

.drive-header:hover {
  background: hsl(var(--clr-background));
}

.drive-team {
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  width: 120px;
}

.drive-team .team-logo-sm {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.drive-team .team-name {
  font-weight: bold;
}

.drive-summary {
  flex: 1;
  text-align: center;
  padding: 0 1rem;
}

.drive-result {
  font-weight: bold;
  display: block;
}

.scoring-drive {
  color: hsl(var(--clr-positive));
}

.drive-start {
  text-align: right;
  flex-shrink: 0;
}

.drive-expand {
  width: 20px;
  text-align: center;
  transition: transform 0.25s;
}

@media (max-width: 768px) {
  .drive-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto;
    gap: 0.5rem;
    align-items: center;
    padding: 0.75rem;
  }

  .drive-team {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: auto;
  }

  .drive-team .team-name {
    display: none;
  }

  .drive-team .team-logo-sm {
    width: 22px;
    height: 22px;
    margin: 0;
  }

  .drive-summary {
    grid-column: 2;
    grid-row: 1;
    text-align: left;
    padding: 0;
    margin: 0;
  }

  .drive-result {
    font-weight: bold;
    font-size: 0.9rem;
    display: inline;
    margin: 0;
  }

  .drive-stats {
    display: flex;
  }

  .drive-start {
    grid-column: 2;
    grid-row: 1;
    text-align: right;
    font-size: 0.8rem;
    white-space: nowrap;
    color: hsl(var(--clr-muted));
  }

  .drive-expand {
    grid-column: 3;
    grid-row: 1;
    align-self: center;
    font-size: 0.75rem;
    margin-left: 0.5rem;
  }

  .news-grid-nfl {
    column-count: 1;
  }
}

.drive-plays {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.drive-plays.expanded {
  max-height: 2000px;
}

.play-item {
  grid-template-columns: 40px 90px 1fr 60px;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-top: var(--border);
  font-size: 0.875rem;
  align-items: center;
}

.play-item:nth-child(odd) {
  background-color: hsl(var(--clr-dark) / 0.9);
}

.play-item.scoring-play {
  background-color: rgba(72, 187, 120, 0.1);
  border-left: 3px solid hsl(var(--clr-positive));
}

.play-clock {
  text-align: center;
}

.play-down {
  font-weight: bold;
}

.play-desc {
  line-height: 1.4;
}

.play-yardage {
  text-align: right;
  font-weight: bold;
}

.positive-yardage {
  color: hsl(var(--clr-positive));
}

.negative-yardage {
  color: hsl(var(--clr-negative));
}

.loading-plays,
.no-plays,
.error-plays {
  padding: 1rem;
  text-align: center;
  font-style: italic;
}

@media (max-width: 768px) {
  .drive-header {
    flex-wrap: wrap;
  }

  .drive-team {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .drive-summary {
    order: 3;
    width: 100%;
    text-align: left;
    padding: 0;
    margin-top: 0.5rem;
  }

  .drive-start {
    width: auto;
    flex: 1;
    text-align: right;
  }

  .play-item {
    grid-template-columns: 35px 1fr;
    grid-template-rows: auto auto;
    gap: 0.25rem;
  }

  .play-clock {
    grid-column: 1;
    grid-row: 1;
  }

  .play-down {
    grid-column: 1;
    grid-row: 2;
    font-size: 0.8rem;
  }

  .play-desc {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .play-yardage {
    display: none;
  }
}

@media (max-width: 768px) {
  .team img {
    width: 36px;
    height: 36px;
  }

  .team-stats-grid {
    grid-template-columns: 1fr 1fr 1fr;
    text-align: center;
  }

  .team-stat {
    flex-direction: column;
    gap: 0.25rem;
  }

  .stat-bar {
    display: none;
  }

  .leaders-grid {
    grid-template-columns: 1fr;
  }

  .leader-cell img {
    width: 40px;
    height: 40px;
  }

  .game-leaders .gl-row {
    flex-wrap: wrap;
    justify-content: left;
  }

  .score-by-quarter {
    overflow-x: auto;
  }

  .team-logo-sm {
    height: 24px;
    vertical-align: middle;
    display: inline-block;
    margin-right: 6px;
  }

  .quarter-table {
    min-width: 200px;
  }

  .matchup-tabs {
    gap: 0.5rem;
  }

  .tab-button {
    padding: 0 1rem 0 1rem;
    background: hsl(var(--clr-dark));
    color: hsl(var(--clr-text));
    border: none;
    cursor: pointer;
    border-radius: 5px;
  }

  #gameDropdown {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    max-width: 100px;
    white-space: pre-wrap;
  }

  #weekSelect {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    max-width: 100px;
    white-space: pre-wrap;
  }
}

/* Player Profile Section */
#player-section {
  display: none;
}

#player-section #player-header {
  background-size: cover;
  background-position: center;
  border-radius: var(--radius, 0.5rem);
  height: 527px;
  position: relative;
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.5);
}

#player-section #player-card {
  display: flex;
  align-items: center;
  position: relative;
  width: 80%;
  left: 10%;
  gap: 1rem;
  background: hsl(var(--clr-dark));
  margin-top: -10rem;
  padding: 1rem;
  border-radius: var(--radius, 0.5rem);
  border: var(--border);
  box-shadow: var(--shadow-md);
}

#player-section #player-card .headshot {
  width: 180px;
  height: 270px;
  border-radius: var(--radius, 0.5rem);
  object-fit: cover;
  background: hsl(var(--clr-background));
}

#player-section #player-card .player-main-info {
  flex: 1;
  color: hsl(var(--clr-text));
}

#player-section #player-card .jersey-number {
  font-size: 2rem;
  font-weight: bold;
  color: hsl(var(--clr-primary));
}

#player-section #player-card h2 {
  font-size: 1.75rem;
  margin: 0.25rem 0;
}

#player-section #player-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
  padding: 1rem;
  background: hsl(var(--clr-dark));
  border: var(--border);
  border-radius: var(--radius);
}

#player-section #player-info div {
  font-size: 0.9rem;
  color: hsl(var(--clr-text));
}

#player-section #player-info strong {
  color: hsl(var(--clr-primary));
}

#player-section #player-tabs {
  margin-top: 1rem;
}

#player-section #player-tabs .tab-button {
  background: hsl(var(--clr-dark));
  border: var(--border);
  padding: 0.5rem 1rem;
  border-radius: var(--radius, 0.5rem) var(--radius, 0.5rem) 0 0;
  margin-right: 0.25rem;
  cursor: pointer;
  color: hsl(var(--clr-alt-text));
}

#player-section #player-tabs .tab-button.active {
  background: hsl(var(--clr-primary));
  border-color: hsl(var(--clr-primary));
}

#player-section .tab-panel {
  display: none;
  padding: 1rem;
  margin-top: 1rem;
  border: var(--border);
  border-radius: var(--radius);
  background: hsl(var(--clr-dark));
  color: hsl(var(--clr-text));
  font-size: var(--fs-300);
}

#player-section .tab-panel.active {
  display: block;
}

#player-section #backToRoster {
  display: inline-block;
  padding: 8px 12px;
  margin-bottom: 1.5rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  border: var(--border);
  background-color: hsl(var(--clr-dark));
  color: hsl(var(--clr-text));
}

#player-section .stats-container {
  display: block;
  overflow-x: auto;
  overflow-y: hidden;
  margin-bottom: 1.5rem;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  border-radius: var(--radius);
}

#player-section .stats-table {
  border-collapse: collapse;
  width: max-content;
  min-width: 100%;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
}

#player-section .stats-table th,
.stats-table td {
  border: var(--border);
  text-align: center;
  padding: 0.25rem;
}

#player-section .stats-table th {
  border: none;
  text-align: center;
  padding: 0.25rem;
}

#player-section .stats-table tr:nth-child(even) {
  background-color: hsl(var(--clr-dark));
}

#player-section .stats-table th {
  background: hsl(var(--clr-primary));
  color: hsl(var(--clr-alt-text));
}

#player-section .stat-totals {
  margin-bottom: 1rem;
}

.career-details {
  margin-top: 2rem;
}

.career-details table {
  margin-bottom: 2rem;
}

.career-details table caption {
  background-color: hsl(var(--clr-dark));
  padding: 0.5rem;
  font-weight: bold;
  border-bottom: none;
  border: var(--border);
}

@media (max-width: 768px) {
  #player-section #player-card p {
    font-size: var(--fs-200);
    margin: 0.25rem 0;
  }
  #player-section #player-card h2 {
    font-size: var(--fs-400);
    margin: 0.25rem 0;
  }
}

.news-videos {
  margin-top: 2rem;
}

.video-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.video-card {
  background: hsl(var(--clr-dark));
  border-radius: 12px;
  overflow: hidden;
  border: var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.video-card iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
}

.video-card h3 {
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
}
