/**
 * Calendrier sorties — UI moderne.
 */

.dsc-cal {
  max-width: 1120px;
  margin: 2rem auto;
  padding: 0 1rem 2.5rem;
}

.dsc-cal__hero {
  padding: 18px 18px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background:
    radial-gradient(820px 220px at 15% 0%, rgba(99, 102, 241, 0.16), transparent 60%),
    radial-gradient(700px 220px at 85% 10%, rgba(255, 46, 85, 0.12), transparent 62%),
    linear-gradient(180deg, rgba(16, 17, 26, 0.78), rgba(10, 11, 16, 0.72));
  box-shadow: 0 22px 72px rgba(0, 0, 0, 0.42);
}

.dsc-cal__title {
  margin: 0 0 6px;
  font-size: clamp(20px, 1.6vw + 14px, 30px);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.98);
  text-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
}

.dsc-cal__subtitle {
  margin: 0;
  color: rgba(214, 220, 238, 0.90);
  line-height: 1.5;
  font-size: 14px;
}

.dsc-cal__controls {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  justify-content: space-between;
}

.dsc-cal__search {
  flex: 1 1 280px;
  min-width: 240px;
  display: grid;
  gap: 6px;
}

.dsc-cal__label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(214, 220, 238, 0.82);
}

.dsc-cal__input {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(16, 17, 26, 0.45);
  color: rgba(255, 255, 255, 0.96);
  padding: 12px 14px;
  outline: none;
}

.dsc-cal__input:focus {
  border-color: rgba(255, 46, 85, 0.45);
  box-shadow: 0 0 0 4px rgba(255, 46, 85, 0.10);
}

.dsc-cal__tz {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(16, 17, 26, 0.35);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 800;
  font-size: 12px;
}

.dsc-cal__hero-top {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  align-items: flex-start;
  justify-content: space-between;
}

.dsc-cal__subscribe {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.dsc-cal__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.dsc-cal__btn--primary {
  background: linear-gradient(95deg, #ff5470, #ff1f3f);
  color: #fff;
  box-shadow: 0 12px 32px rgba(255, 31, 63, 0.35);
}

.dsc-cal__btn--primary:hover {
  transform: translateY(-1px);
}

.dsc-cal__btn--ghost {
  background: rgba(16, 17, 26, 0.5);
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.94);
}

.dsc-cal__btn--ghost[aria-pressed="true"] {
  border-color: rgba(255, 212, 132, 0.55);
  color: rgba(255, 232, 180, 0.98);
}

.dsc-cal__stats {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  align-items: stretch;
}

.dsc-cal__stat {
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(10, 11, 16, 0.45);
  min-width: 140px;
}

.dsc-cal__stat--grow {
  flex: 1 1 260px;
}

.dsc-cal__stat-num {
  display: block;
  font-size: 28px;
  font-weight: 950;
  color: #fff;
  line-height: 1.1;
}

.dsc-cal__stat-label {
  font-size: 12px;
  color: rgba(214, 220, 238, 0.82);
  font-weight: 800;
}

.dsc-cal__stat-k {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(214, 220, 238, 0.7);
  font-weight: 900;
}

.dsc-cal__stat-next {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.96);
}

.dsc-cal__stat-sub {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255, 212, 132, 0.92);
}

.dsc-cal__premium-hint {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  font-size: 13px;
  line-height: 1.5;
  color: rgba(214, 220, 238, 0.9);
}

.dsc-cal__premium-hint a {
  color: rgba(255, 180, 200, 0.98);
  font-weight: 800;
}

.dsc-cal__filters {
  display: grid;
  gap: 6px;
  flex: 1 1 220px;
  min-width: 200px;
}

.dsc-cal__chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dsc-cal__chip {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(16, 17, 26, 0.45);
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 900;
  padding: 8px 12px;
  cursor: pointer;
}

.dsc-cal__chip--active {
  border-color: rgba(255, 46, 85, 0.5);
  background: rgba(255, 46, 85, 0.15);
  color: #fff;
}

.dsc-cal__watch-toolbar {
  display: flex;
  align-items: flex-end;
}

.dsc-cal__banner {
  margin: 10px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 180, 80, 0.28);
  background: rgba(255, 140, 60, 0.08);
  color: rgba(255, 220, 190, 0.95);
  font-size: 13px;
}

.dsc-cal__banner--hidden {
  display: none;
}

.dsc-cal__timeline {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.dsc-cal-day {
  padding: 14px 14px 8px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(180deg, rgba(16, 17, 26, 0.72), rgba(10, 11, 16, 0.72));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
}

.dsc-cal-day--today {
  border-color: rgba(255, 46, 85, 0.35);
  box-shadow: 0 18px 60px rgba(255, 46, 85, 0.12);
}

.dsc-cal-day__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.dsc-cal-day__title {
  margin: 0;
  font-size: clamp(16px, 1.2vw + 12px, 20px);
  font-weight: 900;
  color: rgba(255, 255, 255, 0.96);
}

.dsc-cal-badge {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 46, 85, 0.45);
  color: rgba(255, 180, 200, 0.98);
  background: rgba(255, 46, 85, 0.12);
}

.dsc-cal-day__events {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dsc-cal-event {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px 14px;
  align-items: center;
  padding: 12px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.dsc-cal-watch {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(16, 17, 26, 0.6);
  color: rgba(255, 255, 255, 0.35);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.dsc-cal-watch--on {
  color: rgba(255, 212, 60, 0.98);
  border-color: rgba(255, 212, 60, 0.45);
  background: rgba(255, 212, 60, 0.08);
}

.dsc-cal-watch:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.dsc-cal-event__main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.dsc-cal-event__manga {
  font-weight: 950;
  font-size: 15px;
  color: #fff;
  text-decoration: none;
}

.dsc-cal-event__manga:hover {
  text-decoration: underline;
}

.dsc-cal-event__chapter {
  font-size: 13px;
  color: rgba(214, 220, 238, 0.88);
  text-decoration: none;
}

.dsc-cal-event__chapter:hover {
  color: rgba(255, 212, 132, 0.95);
}

.dsc-cal-event__when {
  text-align: right;
  min-width: 120px;
}

.dsc-cal-event__clock {
  display: block;
  font-weight: 950;
  font-size: 16px;
  color: rgba(255, 212, 132, 0.98);
}

.dsc-cal__countdown {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: rgba(214, 220, 238, 0.75);
  font-weight: 700;
}

.dsc-cal__empty {
  padding: 14px 12px;
  color: rgba(214, 220, 238, 0.86);
}

.dsc-cal__empty--big {
  padding: 22px 16px;
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  text-align: center;
  font-size: 14px;
}

.dsc-cal__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;
}

@media (max-width: 560px) {
  .dsc-cal-event {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    align-items: start;
  }

  .dsc-cal-event__when {
    grid-column: 1 / -1;
    text-align: left;
    min-width: 0;
  }

  .dsc-cal-watch {
    grid-row: 1 / span 2;
    align-self: start;
  }
}

@media (max-width: 520px) {
  .dsc-cal__hero {
    padding: 16px 14px 14px;
  }
  .dsc-cal__input {
    padding: 11px 12px;
  }
}

