body {
  margin: 0;
  font-family: "Futura", "Trebuchet MS", Arial, sans-serif;
  background: #000000;
  color: #ffffff;
}

.update-panel {
  position: fixed;
  top: 16px;
  right: 24px;
  width: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 20;
}

.update-countdown {
  color: #9a9a9a;
  font-family: "Futura", "Trebuchet MS", Arial, sans-serif;
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  width: 100%;
  text-align: center;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.update-loader {
  margin-top: 8px;
  width: 170px;
  height: 7px;
  position: relative;
  border-radius: 999px;
  background: #000000;
  overflow: hidden;
  clip-path: inset(0 round 999px);
  isolation: isolate;
}

.update-loader-sway {
  position: absolute;
  bottom: 0;
  left: -72px;
  width: 72px;
  height: 7px;
  display: block;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #ff003c 0%,
    #ff8a00 16%,
    #ffd400 32%,
    #36ff00 48%,
    #00d5ff 64%,
    #4a5cff 80%,
    #c300ff 100%
  );
  background-size: 300% 100%;
  z-index: 0;
  animation:
    sway-loader 1.9s ease-in-out infinite alternate,
    rainbow-loader 2.2s linear infinite;
}

@keyframes sway-loader {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(252px);
  }
}

@keyframes rainbow-loader {
  from {
    background-position: 0% 50%;
  }
  to {
    background-position: 100% 50%;
  }
}

.layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 48px;
}

.weather-box {
  width: 95%;
  margin: 0 auto 24px;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9a9a9a;
  font-family: "Futura", "Trebuchet MS", Arial, sans-serif;
  font-size: clamp(1rem, 2vw, 1.25rem);
  letter-spacing: 0.02em;
  text-align: center;
}

.weather-box-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 14px;
  margin-top: 0;
  padding: 0 28px 14px;
  box-sizing: border-box;
  position: relative;
}

.weather-outfit-recommendation {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: max-content;
  max-width: 60%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: clamp(0.92rem, 1.55vw, 1.1rem);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: normal;
  line-height: 1.2;
  text-align: center;
  margin: 0;
  pointer-events: none;
}

.weather-outfit-line {
  display: block;
}

.weather-outfit-line-primary {
  color: #ffffff;
}

.weather-outfit-line-secondary {
  color: #9a9a9a;
}

.weather-current-temp {
  color: #ededed;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  font-weight: 700;
}

.weather-current-unit {
  display: inline-block;
  font-size: 0.45em;
  vertical-align: top;
  position: relative;
  top: 10px;
}

.weather-primary-block {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
}

.weather-main-row {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  position: relative;
  width: 100%;
}

.weather-forecast-icon {
  width: clamp(68px, 8.5vw, 96px);
  height: clamp(68px, 8.5vw, 96px);
  display: block;
  opacity: 0.9;
  filter: invert(1) brightness(1.15);
}

.weather-location-label {
  color: #ffffff;
  font-size: clamp(0.72rem, 1.2vw, 0.9rem);
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  line-height: 1;
  width: 100%;
  margin-top: 4px;
}

.weather-range-line {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: -22px;
  margin-bottom: -4px;
  color: #bdbdbd;
  font-size: clamp(0.95rem, 1.8vw, 1.2rem);
  line-height: 1;
}

.weather-short-forecast {
  position: absolute;
  right: 20px;
  bottom: 8px;
  color: #9f9f9f;
  font-size: clamp(0.84rem, 1.5vw, 1.02rem);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.weather-precipitation {
  position: absolute;
  right: 20px;
  bottom: 30px;
  margin-bottom: -12px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #c2c2c2;
  font-size: clamp(0.8rem, 1.3vw, 0.95rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.weather-precipitation-icon {
  width: 50px;
  height: 50px;
  display: block;
  margin-right: -15px;
  opacity: 1;
  filter: brightness(0) saturate(100%) invert(38%) sepia(94%) saturate(2094%) hue-rotate(185deg) brightness(101%) contrast(101%);
}

.weather-wind {
  position: absolute;
  right: 20px;
  bottom: 54px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #c2c2c2;
  font-size: clamp(0.8rem, 1.3vw, 0.95rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.weather-wind-icon {
  width: 20px;
  height: 20px;
  display: block;
  filter: invert(1) brightness(1.1);
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 5vw, 3.5rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.direction-section {
  margin-bottom: 36px;
}

.direction-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.uptown-columns {
  margin: 0 24px 16px 0;
  display: flex;
  align-items: center;
  gap: 22px;
  color: #9a9a9a;
  font-family: "Futura", "Trebuchet MS", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
}

.uptown-station-headers {
  display: grid;
  grid-template-columns: 104px 104px;
  gap: 10px;
  width: 218px;
  text-align: center;
}

.uptown-leave-spacer {
  display: inline-block;
  width: 220px;
}

.brooklyn-columns {
  margin: 0 24px 16px 0;
  display: flex;
  align-items: center;
  gap: 22px;
  color: #9a9a9a;
  font-family: "Futura", "Trebuchet MS", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
}

.brooklyn-station-headers {
  display: grid;
  grid-template-columns: 104px;
  width: 104px;
  text-align: center;
}

.brooklyn-leave-spacer {
  display: inline-block;
  width: 220px;
}

.rows {
  display: grid;
  gap: 12px;
}

.row-shell {
  position: relative;
  width: 100%;
}

.side-meta {
  position: absolute;
  left: -42px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 4px;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

.data-row {
  background: #141414;
  border: 1px solid #1f1f1f;
  border-radius: 8px;
  min-height: 88px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px 0 24px;
  box-sizing: border-box;
}

.data-row-empty {
  justify-content: center;
  color: #9a9a9a;
  font-size: clamp(1rem, 2vw, 1.3rem);
}

.row-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

[class*="subway-icon"] {
  position: relative;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 2.25rem;
  z-index: 5;
  height: 1em;
  width: 1em;
  line-height: 1em;
  margin-left: 0.2em;
  margin-right: 0.2em;
  justify-content: center;
  align-items: center;
  display: inline-flex;
  text-align: center;
  font-weight: bold;
  text-transform: uppercase;
  color: #000;
}

[class*="subway-icon"]::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: calc(100% + 0.4em);
  height: calc(100% + 0.4em);
  left: -0.2em;
  top: -0.2em;
  border-radius: 50%;
  background-color: red;
}

.mta-red::before {
  background-color: #df0000;
}

.mta-green::before {
  background-color: #008700;
}

.mta-blue::before {
  background-color: #0a5786;
}

.mta-orange::before {
  background-color: #de3700;
}

.mta-purple::before {
  background-color: #5a045a;
}

.mta-green-2::before {
  background-color: #4f8403;
}

.mta-yellow::before {
  background-color: #fccc0a;
  color: #000;
}

.mta-gray::before {
  background-color: #666666;
}

.mta-brown::before {
  background-color: #573208;
}

.mta-red,
.mta-green,
.mta-blue,
.mta-orange,
.mta-purple,
.mta-green-2,
.mta-gray,
.mta-brown {
  color: #fff;
}

.mta-yellow {
  color: #000;
}

.minutes-away {
  font-family: "Futura", "Trebuchet MS", Arial, sans-serif;
  color: #ffffff;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  text-transform: none;
  white-space: nowrap;
  text-align: right;
}

.row-right-wrap {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-shrink: 0;
}

.station-etas-grid {
  display: grid;
  grid-template-columns: 104px 104px;
  gap: 10px;
  align-items: center;
  justify-items: center;
  width: 218px;
}

.station-etas-grid-with-separator {
  position: relative;
}

.station-etas-grid-single {
  grid-template-columns: 104px;
  width: 104px;
}

.leave-wrap {
  width: 220px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-shrink: 0;
}

.stop-col-value {
  font-family: "Futura", "Trebuchet MS", Arial, sans-serif;
  color: #6f6f6f;
  font-size: 0.95rem;
  text-align: center;
  white-space: nowrap;
}

.stop-col-separator {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: "Futura", "Trebuchet MS", Arial, sans-serif;
  color: #6f6f6f;
  font-size: 0.95rem;
  line-height: 1;
  pointer-events: none;
}


.station-name {
  font-family: "Futura", "Trebuchet MS", Arial, sans-serif;
  color: #ffffff;
  background: transparent;
  border: 0;
  padding: 0;
  margin-left: 6px;
  font-size: clamp(1.15rem, 2.25vw, 1.45rem);
  line-height: 1;
  white-space: nowrap;
}

.train-note {
  font-family: "Futura", "Trebuchet MS", Arial, sans-serif;
  color: #9a9a9a;
  font-size: clamp(0.82rem, 1.4vw, 1rem);
  line-height: 1;
}

.delay-icon {
  width: 28px;
  height: 28px;
  display: inline-block;
  margin: 0 6px 0 0;
}

.express-highlight::before {
  box-shadow: none;
}

.express-highlight {
  --express-ring-offset: 0.41em;
}

.express-highlight::after {
  content: "";
  position: absolute;
  z-index: -2;
  width: calc(100% + 0.82em);
  height: calc(100% + 0.82em);
  left: calc(-1 * var(--express-ring-offset));
  top: calc(-1 * var(--express-ring-offset));
  border-radius: 50%;
  background: conic-gradient(
    from 20deg,
    #39ff14 0deg 320deg,
    transparent 320deg 360deg
  );
  -webkit-mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 3px),
    #000 calc(100% - 3px)
  );
  mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 3px),
    #000 calc(100% - 3px)
  );
}

.express-gap-chevron {
  position: absolute;
  left: calc(50% + 1px);
  top: -27px;
  transform: translateX(-50%);
  color: #39ff14;
  font-size: 0.72em;
  letter-spacing: 0.08em;
  line-height: 1;
  font-weight: 700;
  text-shadow: 0 0 3px rgba(57, 255, 20, 0.75);
  pointer-events: none;
}

.walk-meta {
  position: absolute;
  right: -56px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 2px;
  width: 46px;
  justify-content: flex-start;
  pointer-events: none;
}

.walk-icon {
  width: 20px;
  height: 20px;
  display: block;
}

.walk-minutes {
  font-family: "Futura", "Trebuchet MS", Arial, sans-serif;
  color: #ffffff;
  font-size: clamp(0.9rem, 1.7vw, 1.1rem);
  line-height: 1;
}

.site-footer {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  font-family: "Futura", "Trebuchet MS", Arial, sans-serif;
  font-size: 0.78rem;
  color: #7d7d7d;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}

.site-footer-logos {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.site-footer-logo {
  font-size: 0.74rem;
  margin: 0;
}
