.otgrp-section,
.otgrp-section * {
  box-sizing: border-box;
}

.otgrp-section {
  --otgrp-primary: #00ffff;
  --otgrp-bg-start: #1d1d1d;
  --otgrp-bg-end: #000000;
  --otgrp-max-width: 1100px;
  --otgrp-card-width: 450px;
  --otgrp-artwork-size: 270px;

  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  max-width: var(--otgrp-max-width);
  margin: 70px auto 60px;
  padding: 20px;
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
}

.otgrp-no-side-logos {
  max-width: calc(var(--otgrp-card-width) + 40px);
}

.otgrp-logo-box {
  width: 420px;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.otgrp-logo-box img {
  width: 100%;
  max-width: 420px;
  height: auto;
  object-fit: contain;
  display: block;
}

.otgrp-player {
  width: 100%;
  max-width: var(--otgrp-card-width);
  background: linear-gradient(145deg, var(--otgrp-bg-start), var(--otgrp-bg-end));
  border-radius: 22px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.08);
}

.otgrp-station-name {
  font-size: 26px;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 8px;
  color: #ffffff;
  text-shadow: 0 0 8px rgba(0, 255, 255, 0.25);
}

.otgrp-tagline {
  font-size: 14px;
  line-height: 1.4;
  color: #cccccc;
  margin-bottom: 20px;
}

.otgrp-artwork-wrap {
  width: var(--otgrp-artwork-size);
  height: var(--otgrp-artwork-size);
  max-width: 100%;
  margin: 0 auto 20px;
  border-radius: 18px;
  overflow: hidden;
  background: #222222;
  display: flex;
  align-items: center;
  justify-content: center;
}

.otgrp-artwork-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.otgrp-placeholder-art {
  font-size: 22px;
  font-weight: 700;
  padding: 20px;
  color: #ffffff;
}

.otgrp-song-title {
  font-size: 22px;
  line-height: 1.25;
  font-weight: 700;
  margin-top: 10px;
  color: #ffffff;
}

.otgrp-artist-name {
  font-size: 17px;
  line-height: 1.35;
  color: #dddddd;
  margin-top: 6px;
}

.otgrp-album-name {
  font-size: 14px;
  line-height: 1.35;
  color: #bdbdbd;
  margin-top: 6px;
}

.otgrp-audio {
  width: 100%;
  margin-top: 22px;
}

.otgrp-meta-box {
  margin-top: 18px;
  background: #181818;
  border-radius: 14px;
  padding: 14px;
  font-size: 13px;
  color: #cccccc;
  text-align: left;
}

.otgrp-meta-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #333333;
  padding: 7px 0;
  gap: 12px;
}

.otgrp-meta-row:last-child {
  border-bottom: none;
}

.otgrp-meta-label {
  color: #999999;
  min-width: 110px;
}

.otgrp-meta-value {
  color: #ffffff;
  text-align: right;
  word-break: break-word;
}

.otgrp-status-live {
  color: #00ff88;
  font-weight: 700;
}

.otgrp-status-off {
  color: #ff5555;
  font-weight: 700;
}

.otgrp-refresh-note {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.4;
  color: #888888;
}

@media (max-width: 1024px) {
  .otgrp-section {
    gap: 25px;
  }

  .otgrp-logo-box {
    width: 300px;
    min-height: 260px;
  }

  .otgrp-logo-box img {
    max-width: 300px;
  }
}

@media (max-width: 900px) {
  .otgrp-section {
    flex-direction: column;
    align-items: center;
    margin-top: 40px;
  }
}

@media (max-width: 767px) {
  .otgrp-section {
    margin: 25px auto 40px;
    padding: 10px;
    gap: 0;
  }

  .otgrp-hide-logos-mobile .otgrp-logo-box {
    display: none !important;
  }

  .otgrp-player {
    max-width: 100%;
    width: 100%;
    padding: 18px 14px;
    border-radius: 18px;
  }

  .otgrp-station-name {
    font-size: 22px;
  }

  .otgrp-tagline {
    font-size: 14px;
    margin-bottom: 16px;
  }

  .otgrp-artwork-wrap {
    width: min(220px, 82vw);
    height: min(220px, 82vw);
  }

  .otgrp-song-title {
    font-size: 18px;
  }

  .otgrp-artist-name {
    font-size: 15px;
  }

  .otgrp-meta-box {
    font-size: 12px;
  }

  .otgrp-meta-row {
    gap: 8px;
  }

  .otgrp-meta-label {
    min-width: 85px;
  }

  .otgrp-meta-value {
    font-size: 12px;
  }
}

/* =========================================================
   OTG Elementor Archive Widget + Popup
   ========================================================= */
.otgrp-archive-widget,
.otgrp-archive-widget * {
  box-sizing: border-box;
}

.otgrp-archive-widget {
  --otgrp-archive-columns: 3;
  width: 100%;
  background: #000000;
  color: #ffffff;
  padding: 70px 20px 0;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
}

.otgrp-archive-title {
  font-size: 42px;
  line-height: 1.15;
  margin: 0 0 10px;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.otgrp-archive-subtitle {
  font-size: 18px;
  line-height: 1.45;
  color: #cccccc;
  margin: 0 0 45px;
}

.otgrp-archive-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(var(--otgrp-archive-columns), minmax(0, 1fr));
  gap: 30px;
}

.otgrp-archive-card {
  background: #111111;
  border: 2px solid #333333;
  border-radius: 18px;
  padding: 32px;
  text-align: center;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.otgrp-archive-card:hover {
  border-color: #555555;
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.18);
  transform: translateY(-4px);
}

.otgrp-archive-logo {
  width: 100%;
  margin-bottom: 20px;
}

.otgrp-archive-logo img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border: 2px dashed #555555;
  border-radius: 14px;
  background: #000000;
  display: block;
}

.otgrp-archive-name {
  font-size: 30px;
  line-height: 1.25;
  font-weight: 500;
  color: #ffffff;
  margin: 10px 0 18px;
}

.otgrp-archive-desc {
  font-size: 18px;
  line-height: 1.45;
  font-weight: 600;
  color: #cccccc;
  margin: 0 0 28px;
}

.otgrp-archive-audio {
  width: 100%;
  height: 54px;
  border-radius: 30px;
  margin-top: auto;
}

.otgrp-archive-no-audio {
  color: #999999;
  font-size: 14px;
  line-height: 1.4;
  margin-top: auto;
}

.otgrp-more-archive-wrap {
  width: 100%;
  text-align: center;
  background: #000000;
  padding: 40px 15px 70px;
}

.otgrp-more-archive-button {
  background: #ffffff;
  color: #000000;
  border: none;
  padding: 16px 34px;
  font-size: 22px;
  font-weight: 700;
  border-radius: 40px;
  cursor: pointer;
  transition: 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.otgrp-more-archive-button:hover {
  background: #ffcc00;
  color: #000000;
  box-shadow: 0 0 20px rgba(255, 204, 0, 0.7);
}

.otgrp-archive-popup-overlay {
  display: none;
  position: fixed;
  z-index: 99999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.88);
  box-sizing: border-box;
}

.otgrp-archive-popup-overlay.is-open {
  display: block;
}

.otgrp-archive-popup-window {
  width: 90%;
  max-width: 1000px;
  max-height: 85vh;
  background: #0b0b0b;
  color: #ffffff;
  margin: 50px auto;
  border: 2px solid #444444;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 0 35px rgba(255, 255, 255, 0.25);
}

.otgrp-archive-popup-header {
  background: #111111;
  border-bottom: 2px solid #333333;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.otgrp-archive-popup-title {
  margin: 0;
  font-size: 28px;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: left;
}

.otgrp-archive-popup-buttons {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

.otgrp-archive-popup-minimize,
.otgrp-archive-popup-close {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  font-size: 26px;
  font-weight: 700;
  cursor: pointer;
  line-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.otgrp-archive-popup-minimize {
  background: #ffcc00;
  color: #000000;
}

.otgrp-archive-popup-close {
  background: #ff3333;
  color: #ffffff;
}

.otgrp-archive-popup-minimize:hover {
  background: #ffffff;
}

.otgrp-archive-popup-close:hover {
  background: #cc0000;
}

.otgrp-archive-popup-content {
  padding: 22px;
  max-height: 70vh;
  overflow-y: auto;
  box-sizing: border-box;
}

.otgrp-archive-popup-player {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #151515;
  border: 1px solid #333333;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 18px;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.06);
}

.otgrp-archive-popup-player:hover {
  border-color: #ffffff;
}

.otgrp-archive-popup-logo {
  width: 115px;
  height: 115px;
  min-width: 115px;
  background: #000000;
  border: 2px dashed #555555;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.otgrp-archive-popup-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.otgrp-archive-popup-info {
  flex: 1;
  text-align: left;
}

.otgrp-archive-popup-item-title {
  margin: 0 0 6px;
  color: #ffffff;
  font-size: 22px;
}

.otgrp-archive-popup-item-desc {
  margin: 0 0 12px;
  color: #cccccc;
  font-size: 15px;
  line-height: 1.4;
}

.otgrp-archive-popup-audio {
  width: 100%;
}

.otgrp-archive-minimized-bar {
  display: none;
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 99998;
  background: #ffcc00;
  color: #000000;
  padding: 14px 22px;
  border-radius: 40px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(255, 204, 0, 0.7);
}

.otgrp-archive-minimized-bar.is-open {
  display: block;
}

.otgrp-archive-minimized-bar:hover {
  background: #ffffff;
}

body.otgrp-popup-open {
  overflow: hidden;
}

@media (max-width: 1024px) {
  .otgrp-archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .otgrp-archive-card {
    padding: 26px;
  }
}

@media (max-width: 767px) {
  .otgrp-archive-widget {
    padding: 50px 14px 0;
  }

  .otgrp-archive-title {
    font-size: 30px;
  }

  .otgrp-archive-subtitle {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .otgrp-archive-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .otgrp-archive-card {
    min-height: auto;
    padding: 22px;
  }

  .otgrp-archive-logo img {
    height: 210px;
  }

  .otgrp-archive-name {
    font-size: 26px;
  }

  .otgrp-archive-desc {
    font-size: 16px;
  }

  .otgrp-more-archive-button {
    font-size: 17px;
    padding: 14px 24px;
  }

  .otgrp-archive-popup-window {
    width: 94%;
    margin: 25px auto;
    max-height: 88vh;
  }

  .otgrp-archive-popup-title {
    font-size: 20px;
  }

  .otgrp-archive-popup-player {
    flex-direction: column;
    text-align: center;
  }

  .otgrp-archive-popup-info {
    text-align: center;
    width: 100%;
  }

  .otgrp-archive-popup-logo {
    width: 150px;
    height: 150px;
    min-width: 150px;
  }

  .otgrp-archive-minimized-bar {
    left: 15px;
    right: 15px;
    bottom: 15px;
    text-align: center;
  }
}
