/*
 * Power Top 15 – chart stiliai
 * ─────────────────────────────────────────────
 * Spalvos iš powerhitradio.lt dizaino sistemos:
 *   Šriftas  : Questrial, sans-serif  (paveldėtas)
 *   Tekstas  : #292929
 *   Akcentas : #ff0060
 *   Fonas    : #f7f7f7 (.scheduleBlockPlace .bColor)
 *   Elementai: #ffffff
 *   Muted    : #555
 *   Riba     : #e0e0e0
 */

/* ── Reset / bazė ───────────────────────────────────────────────────────────*/
.pwr-top15 *,
.pwr-top15 *::before,
.pwr-top15 *::after {
  box-sizing: border-box;
}

.pwr-top15 {
  font-family: Questrial, sans-serif;
  color: #292929;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px 32px;
}

/* ── Datos navigacija ───────────────────────────────────────────────────────*/
.pwr-top15__nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 0 18px;
  border-bottom: 2px solid #e0e0e0;
  margin-bottom: 20px;
}

.pwr-top15__nav-label {
  font-size: 13px;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.pwr-top15__nav-date {
  font-size: 17px;
  font-weight: 500;
  color: #292929;
}

.pwr-top15__nav-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

/* Savaitės dropdown */
.pwr-top15__select-wrap {
  position: relative;
  display: inline-block;
}

.pwr-top15__select-wrap::after {
  content: '▾';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #555;
  pointer-events: none;
  font-size: 12px;
}

.pwr-top15__select {
  appearance: none;
  background: #fff;
  border: 1px solid #e0e0e0;
  color: #292929;
  padding: 7px 28px 7px 12px;
  border-radius: 4px;
  font-family: Questrial, sans-serif;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.15s;
}

.pwr-top15__select:focus {
  outline: none;
  border-color: #ff0060;
}

/* Rodyklių mygtukai */
.pwr-top15__btn-arrow {
  background: #fff;
  border: 1px solid #e0e0e0;
  color: #292929;
  width: 34px;
  height: 34px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  padding: 0;
}

.pwr-top15__btn-arrow:hover {
  background: #ff0060;
  border-color: #ff0060;
  color: #fff;
}

.pwr-top15__btn-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.pwr-top15__btn-arrow:disabled:hover {
  background: #fff;
  border-color: #e0e0e0;
  color: #292929;
}

/* ── Chart sąrašas ──────────────────────────────────────────────────────────*/
.pwr-top15__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

/* ── Viena eilutė ───────────────────────────────────────────────────────────*/
.pwr-top15__entry {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-left: 3px solid #e0e0e0;
  display: grid;
  grid-template-columns: 52px 55px 80px 1fr 50px auto;
  align-items: center;
  min-height: 66px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.pwr-top15__links {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: 10px;
  flex-direction: column;
  align-content: center;
  justify-content: center;
}

.pwr-top15__entry:hover {
  border-color: #d0d0d0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}

/* Top 3 kairė juostelė */
.pwr-top15__entry:nth-child(1) { border-left-color: #d4a017; }
.pwr-top15__entry:nth-child(2) { border-left-color: #999; }
.pwr-top15__entry:nth-child(3) { border-left-color: #a0522d; }

/* ── Pozicijos numeris ──────────────────────────────────────────────────────*/
.pwr-top15__pos {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  color: #bbb;
  padding: 0 4px;
  line-height: 1;
}

.pwr-top15__entry:nth-child(1) .pwr-top15__pos {
  color: #d4a017;
  font-size: 28px;
}

.pwr-top15__entry:nth-child(2) .pwr-top15__pos {
  color: #999;
  font-size: 26px;
}

.pwr-top15__entry:nth-child(3) .pwr-top15__pos {
  color: #a0522d;
}

/* ── Pokytis ────────────────────────────────────────────────────────────────*/
.pwr-top15__change {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 4px 0;
}

.pwr-top15__change-up {
  color: #22a84b;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.pwr-top15__change-up::before {
  content: '▲';
  font-size: 11px;
  line-height: 1.2;
}

.pwr-top15__change-down {
  color: #d92b2b;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.pwr-top15__change-down::before {
  content: '▼';
  font-size: 11px;
  line-height: 1.2;
}

.pwr-top15__change-same {
  color: #bbb;
  font-size: 16px;
  line-height: 1;
}

.pwr-top15__change-new {
  background: #ff0060;
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 5px;
  border-radius: 2px;
  text-align: center;
  line-height: 1.4;
}

.pwr-top15__change-returned {
  background: #d4a017;
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 5px;
  border-radius: 2px;
  text-align: center;
  line-height: 1.4;
}

/* ── Paveikslėlis (Artwork) ─────────────────────────────────────────────────*/
.pwr-top15__art {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.pwr-top15__art img {
  width: 60px;
  height: 60px;
  border-radius: 4px;
  object-fit: cover;
  background: #f0f0f0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* ── Dainos informacija ─────────────────────────────────────────────────────*/
.pwr-top15__info {
  padding: 12px 16px;
  min-width: 0;
}

.pwr-top15__artist {
  font-size: 15px;
  font-weight: 500;
  color: #292929;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.pwr-top15__title {
  font-size: 13px;
  color: #555;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.pwr-top15__prev-pos {
  font-size: 11px;
  color: #aaa;
  margin-top: 3px;
}

/* ── Savaičių skaičius ──────────────────────────────────────────────────────*/
.pwr-top15__weeks {
  padding: 0 18px;
  text-align: right;
  white-space: nowrap;
  flex-shrink: 0;
}

.pwr-top15__weeks-num {
  font-size: 22px;
  font-weight: 700;
  color: #ff0060;
  line-height: 1;
  display: block;
  text-align: center;
}

.pwr-top15__entry:nth-child(1) .pwr-top15__weeks-num {
  color: #d4a017;
}

.pwr-top15__weeks-label {
  font-size: 10px;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
}

/* ── Loader ─────────────────────────────────────────────────────────────────*/
.pwr-top15__loader {
  text-align: center;
  padding: 40px 0;
  color: #aaa;
  font-size: 14px;
}

.pwr-top15__loader-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #e0e0e0;
  border-top-color: #ff0060;
  border-radius: 50%;
  animation: pwr-spin 0.7s linear infinite;
  margin: 0 auto 10px;
}

@keyframes pwr-spin {
  to { transform: rotate(360deg); }
}

/* ── Įdomūs faktai ──────────────────────────────────────────────────────────*/
.pwr-top15__facts {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 2px solid #e0e0e0;
}

.pwr-top15__facts-title {
  font-size: 18px;
  font-weight: 500;
  color: #292929;
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pwr-top15__facts-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e0e0e0;
}

.pwr-top15__facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.pwr-top15__fact-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-top: 3px solid #ff0060;
  padding: 16px;
}

.pwr-top15__fact-label {
  font-size: 10px;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  font-weight: 500;
}

.pwr-top15__fact-artist {
  font-size: 15px;
  font-weight: 500;
  color: #292929;
  line-height: 1.3;
}

.pwr-top15__fact-song {
  font-size: 13px;
  color: #555;
  margin-top: 2px;
  line-height: 1.3;
}

.pwr-top15__fact-stat {
  font-size: 30px;
  font-weight: 700;
  color: #ff0060;
  margin-top: 8px;
  line-height: 1;
}

.pwr-top15__fact-stat span {
  font-size: 13px;
  font-weight: 400;
  color: #aaa;
}

/* ── Archyvas ───────────────────────────────────────────────────────────────*/
.pwr-top15__archive {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 2px solid #e0e0e0;
}

.pwr-top15__archive-title {
  font-size: 18px;
  font-weight: 500;
  color: #292929;
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pwr-top15__archive-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e0e0e0;
}

/* Metų kortelės */
.pwr-top15__year-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 14px;
}

.pwr-top15__year-tab {
  background: #fff;
  border: 1px solid #e0e0e0;
  color: #555;
  padding: 4px 12px;
  font-family: Questrial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  border-radius: 2px;
  user-select: none;
}

.pwr-top15__year-tab:hover {
  border-color: #ff0060;
  color: #ff0060;
}

.pwr-top15__year-tab--active {
  background: #ff0060;
  border-color: #ff0060;
  color: #fff;
}

/* Savaičių tinklelis */
.pwr-top15__week-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 5px;
}

.pwr-top15__week-btn {
  background: #fff;
  border: 1px solid #e0e0e0;
  color: #555;
  padding: 6px 8px;
  font-family: Questrial, sans-serif;
  font-size: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}

.pwr-top15__week-btn:hover {
  border-color: #ff0060;
  color: #ff0060;
}

.pwr-top15__week-btn--active {
  background: #ff0060;
  border-color: #ff0060;
  color: #fff;
}

/* ── Responsyvas ────────────────────────────────────────────────────────────*/
@media (max-width: 600px) {

  .pwr-top15 {
    padding: 0 0 32px;
  }
  .pwr-top15__entry {
    grid-template-columns: 42px 38px 80px 1fr 50px auto;
    min-height: 58px;
  }
  .pwr-top15__info {
    padding: 12px 0;
    min-width: 0;
  }

  .pwr-top15__pos {
    font-size: 20px;
  }

  .pwr-top15__entry:nth-child(1) .pwr-top15__pos {
    font-size: 22px;
  }

  .pwr-top15__artist {
    font-size: 14px;
  }

  .pwr-top15__title {
    font-size: 12px;
  }

  .pwr-top15__weeks {
    padding: 0 5px;
  }

  .pwr-top15__weeks-num {
    font-size: 18px;
  }

  .pwr-top15__nav-controls {
    flex-wrap: wrap;
  }
}
