.popular-times-section {
  position: relative;
  overflow: hidden;
  scroll-margin-top: 96px;
  padding: 118px 0 104px;
  background:
    radial-gradient(circle at 9% 18%, rgba(248, 104, 22, 0.22) 0%, rgba(248, 104, 22, 0) 34%),
    linear-gradient(135deg, #171717 0%, #201916 48%, #141414 100%);
}

.popular-times-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(248, 104, 22, 0.24) 0%, rgba(248, 104, 22, 0) 34%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 100%);
  background-size: auto, 72px 72px;
  opacity: 0.72;
}

.popular-times-section .container {
  position: relative;
  z-index: 1;
}

.popular-times-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(560px, 1.22fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.popular-times-copy {
  color: #ffffff;
}

.popular-times-kicker,
.popular-times-card-kicker {
  margin: 0;
  color: #f86816;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.popular-times-copy h2 {
  margin: 10px 0 16px;
  color: #ffffff;
  font-family: "Roboto Slab", "Roboto", sans-serif;
  font-size: clamp(2.1rem, 4vw, 4.1rem);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.04;
}

.popular-times-copy p:not(.popular-times-kicker) {
  max-width: 440px;
  margin: 0;
  color: #efe5e1;
  font-size: 18px;
  line-height: 1.65;
}

.popular-times-footer span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid rgba(248, 104, 22, 0.32);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(0, 0, 0, 0.28);
  color: #f8eee9;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.popular-times-card {
  width: 100%;
  min-width: 0;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom-color: rgba(248, 104, 22, 0.5);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0) 42%),
    #202124;
  color: #e8eaed;
  box-shadow:
    0 30px 72px rgba(0, 0, 0, 0.32),
    0 2px 0 rgba(248, 104, 22, 0.42);
}

.popular-times-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.popular-times-title {
  margin: 4px 0 0;
  color: #ffffff;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.18;
}

.popular-times-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border: 1px solid rgba(248, 104, 22, 0.45);
  border-radius: 50%;
  background: rgba(248, 104, 22, 0.12);
  color: #f86816;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.popular-times-tabs {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 22px;
  color: #bdc1c6;
}

.popular-times-tab {
  min-width: 0;
  height: 34px;
  border: 0;
  border-bottom: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-align: center;
}

.popular-times-tab:hover {
  color: #ffffff;
}

.popular-times-tab:focus-visible {
  outline: 2px solid #f86816;
  outline-offset: 2px;
}

.popular-times-tab-active {
  border-bottom-color: #f86816;
  color: #ffffff;
}

.popular-times-live {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  gap: 7px;
  margin-bottom: 22px;
  color: #e8eaed;
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
}

.popular-times-live strong {
  color: #f86816;
}

.popular-times-live-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  border: 3px solid #f86816;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(248, 104, 22, 0.11);
}

.popular-times-live-status-baixo .popular-times-live-dot {
  border-color: #fbbc04;
  box-shadow: 0 0 0 4px rgba(251, 188, 4, 0.11);
}

.popular-times-live-status-normal .popular-times-live-dot {
  border-color: #81c995;
  box-shadow: 0 0 0 4px rgba(129, 201, 149, 0.12);
}

.popular-times-live-status-alto .popular-times-live-dot {
  border-color: #f86816;
}

.popular-times-live-status-indisponivel .popular-times-live-dot {
  border-color: #9aa0a6;
  box-shadow: 0 0 0 4px rgba(154, 160, 166, 0.1);
}

.popular-times-chart {
  position: relative;
  height: 218px;
  padding-top: 14px;
}

.popular-times-grid {
  position: absolute;
  inset: 0 0 38px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}

.popular-times-grid span {
  display: block;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.popular-times-bars {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(24, minmax(5px, 1fr));
  align-items: end;
  height: 166px;
  gap: 7px;
  padding: 0 4px;
}

.popular-times-bar {
  width: 100%;
  min-width: 5px;
  max-width: 18px;
  justify-self: center;
  border: 0;
  border-radius: 999px 999px 5px 5px;
  background: linear-gradient(180deg, #b4bac1 0%, #8f979f 100%);
  cursor: default;
  opacity: 0.94;
  padding: 0;
  transition: height 180ms ease, background-color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.popular-times-bar:hover,
.popular-times-bar:focus-visible {
  opacity: 1;
  transform: translateY(-2px);
}

.popular-times-bar:focus-visible {
  outline: 2px solid #f86816;
  outline-offset: 2px;
}

.popular-times-bar-current {
  background: linear-gradient(180deg, #ffb199 0%, #f86816 100%);
  box-shadow: 0 0 18px rgba(248, 104, 22, 0.28);
}

.popular-times-hours {
  display: grid;
  grid-template-columns: repeat(24, minmax(5px, 1fr));
  gap: 7px;
  padding: 11px 4px 0;
  color: #c9cdd2;
  font-size: 11px;
  line-height: 1;
}

.popular-times-hours span {
  min-width: 0;
  text-align: center;
}

.popular-times-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
}

.popular-times-footer span {
  background: rgba(255, 255, 255, 0.055);
  color: #cfd2d6;
}

.popular-times-empty {
  min-height: 18px;
  margin-top: 14px;
  color: #bdc1c6;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}

.popular-times-card-error .popular-times-chart {
  opacity: 0.45;
}

@media (max-width: 1024px) {
  .popular-times-section {
    padding: 104px 0 78px;
  }

  .popular-times-shell {
    grid-template-columns: 1fr;
  }

  .popular-times-copy {
    max-width: 720px;
  }

  .popular-times-copy p:not(.popular-times-kicker) {
    max-width: 620px;
  }
}

@media (max-width: 640px) {
  .popular-times-section {
    scroll-margin-top: 82px;
    padding: 84px 0 56px;
    background:
      radial-gradient(circle at 20% 10%, rgba(248, 104, 22, 0.22) 0%, rgba(248, 104, 22, 0) 38%),
      linear-gradient(135deg, #171717 0%, #211915 52%, #141414 100%);
  }

  .popular-times-copy h2 {
    font-size: 2.15rem;
  }

  .popular-times-copy p:not(.popular-times-kicker) {
    font-size: 16px;
  }

  .popular-times-card {
    padding: 18px;
  }

  .popular-times-tabs {
    gap: 4px;
  }

  .popular-times-tab {
    height: 31px;
    font-size: 11px;
  }

  .popular-times-chart {
    height: 176px;
  }

  .popular-times-bars {
    height: 132px;
    gap: 4px;
  }

  .popular-times-hours {
    gap: 4px;
  }

  .popular-times-live {
    justify-content: flex-start;
    text-align: left;
  }
}
