/* ==========================================================================
   ESTIMATED SCHEDULE COMPONENT (ANIWAVE / 9ANIME STYLE)
   ========================================================================== */

section#schedule {
  border-radius: 12px;
  overflow: hidden;
  margin: 18px 0;
  background: #171520;
  border: 1px solid rgba(139, 92, 246, 0.22);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45), 0 0 15px rgba(139, 92, 246, 0.05);
}

section#schedule .head {
  background: linear-gradient(rgba(17, 16, 25, 0.88), rgba(17, 16, 25, 0.96)), url('https://aniwaves.ru/assets/images/bg-schedule.png') no-repeat center top;
  background-size: cover;
  padding: 20px 22px 0;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

section#schedule .head .title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 1.35rem;
  font-weight: 700;
  color: #f5f3ff;
}

section#schedule .head .now {
  font-size: 13.5px !important;
  color: #a78bfa;
  font-weight: 600;
  margin-left: 8px;
}

section#schedule .head .now .timenow {
  color: #c4b5fd;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

section#schedule .head .tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 20px;
  padding: 3px;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

section#schedule .head .tabs .tab {
  padding: 4px 16px;
  font-size: 12px;
  font-weight: 700;
  color: #9ca3af;
  cursor: pointer;
  border-radius: 16px;
  transition: all 0.2s ease;
  user-select: none;
}

section#schedule .head .tabs .tab.active {
  background: #7c3aed;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.55);
}

section#schedule .head .days {
  display: flex;
  margin-top: 18px;
  align-items: center;
  position: relative;
}

section#schedule .head .days .next,
section#schedule .head .days .prev {
  font-size: 1.25rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #c4b5fd;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
  user-select: none;
  flex-shrink: 0;
}

section#schedule .head .days .next:hover,
section#schedule .head .days .prev:hover {
  background: #7c3aed;
  color: #fff;
  transform: scale(1.08);
}

section#schedule .head .days .items-wrap {
  flex-grow: 1;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0 8px;
}

section#schedule .head .days .items-wrap::-webkit-scrollbar {
  display: none;
}

section#schedule .head .days .items {
  display: flex;
  gap: 8px;
  width: 100%;
}

section#schedule .head .days .items .day {
  flex: 1;
  min-width: 72px;
  text-align: center;
}

section#schedule .head .days .items .day .inner {
  text-transform: uppercase;
  color: #9ca3af;
  transition: all 0.25s ease;
  cursor: pointer;
  padding: 10px 4px 14px;
  border-bottom: 3px solid transparent;
  border-radius: 8px 8px 0 0;
}

section#schedule .head .days .items .day .inner:hover {
  color: #e5e7eb;
  background: rgba(255, 255, 255, 0.04);
}

section#schedule .head .days .items .day.active .inner {
  color: #ffffff;
  border-bottom-color: #8b5cf6;
  font-weight: 700;
  background: rgba(139, 92, 246, 0.12);
}

section#schedule .head .days .items .day .date {
  font-size: 11px;
  letter-spacing: 0.5px;
  opacity: 0.8;
}

section#schedule .head .days .items .day .wday {
  font-size: 15px;
  font-weight: 800;
  margin-top: 2px;
}

section#schedule .head .days .items .day.active .wday {
  color: #c4b5fd;
}

section#schedule .body {
  padding: 14px 18px;
  background: #14121d;
}

section#schedule .body .items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 440px;
  overflow-y: auto;
  padding-right: 4px;
}

section#schedule .body .items::-webkit-scrollbar {
  width: 5px;
}

section#schedule .body .items::-webkit-scrollbar-thumb {
  background: #3b3654;
  border-radius: 4px;
}

section#schedule .body .item {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  text-decoration: none !important;
  color: #d1d5db;
  transition: all 0.2s ease;
  gap: 14px;
}

section#schedule .body .item:hover {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.35);
  transform: translateX(4px);
  color: #fff;
}

section#schedule .body .item .time {
  font-size: 13px;
  font-weight: 700;
  color: #a78bfa;
  min-width: 82px;
  flex-shrink: 0;
}

section#schedule .body .item .title {
  flex-grow: 1;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #f3f4f6;
}

section#schedule .body .item .ep {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: #252236;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 700;
  color: #c4b5fd;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

section#schedule .body .item:hover .ep {
  background: #7c3aed;
  color: #fff;
}

section#schedule .body .item .ep i {
  font-size: 10px;
}

@media (max-width: 640px) {
  section#schedule .head {
    padding: 14px 14px 0;
  }
  section#schedule .head .title {
    font-size: 1.15rem;
  }
  section#schedule .head .days .items .day {
    min-width: 55px;
  }
  section#schedule .head .days .items .day .wday {
    font-size: 13px;
  }
  section#schedule .body .item {
    padding: 8px 10px;
    gap: 8px;
  }
  section#schedule .body .item .time {
    min-width: 68px;
    font-size: 12px;
  }
  section#schedule .body .item .title {
    font-size: 13px;
  }
}
