/* ==========================================================================
   MPTourography & YouTube Gallery — Classic VIP-Business-Dark Integration
   Matches mikeportnoy.com's exact #000000 / #100d1b / #652c8f / #3368c6 / #FFF700 theme
   ========================================================================== */

:root {
  --mp-bg: #000000;
  --mp-panel: #100d1b;
  --mp-panel-alt: #171717;
  --mp-surface: #1d192b;
  --mp-purple: #652c8f;
  --mp-purple-light: #9b6bc2;
  --mp-blue: #3368c6;
  --mp-yellow: #fff700;
  --mp-text: #cacaca;
  --mp-white: #ffffff;
  --mp-muted: #9e9ca8;
  --mp-border: rgba(255, 255, 255, 0.14);
}

#tourography-app,
#tourography-app *,
#mp-youtube-gallery,
#mp-youtube-gallery *,
#mp-yt-modal,
#mp-yt-modal * {
  box-sizing: border-box;
}

#tourography-app {
  color: var(--mp-text);
  font-family: "Roboto", sans-serif;
  line-height: 1.55;
}

.tg-header-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: safe center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--mp-purple);
}

.tg-title {
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  font-weight: 700;
  color: var(--mp-white);
  margin: 0;
  line-height: 1.2;
}

.tg-subtitle {
  margin: 0.25rem 0 0;
  font-size: 0.92rem;
  color: var(--mp-muted);
}

.tg-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.tg-stat-card {
  background: var(--mp-panel);
  border: 1px solid var(--mp-border);
  border-top: 3px solid var(--mp-purple);
  padding: 0.75rem 0.95rem;
  text-align: center;
}

.tg-stat-num {
  font-family: "Poppins", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--mp-white);
  line-height: 1.15;
}

.tg-stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--mp-muted);
  margin-top: 0.2rem;
}

.tg-search-bar {
  background: var(--mp-panel);
  border: 1px solid var(--mp-border);
  padding: 0.9rem;
  margin-bottom: 1.65rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: safe center;
}

.tg-input,
.tg-select,
.tg-textarea {
  background: #090710;
  color: var(--mp-white);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 0.58rem 0.8rem;
  font-family: "Roboto", sans-serif;
  font-size: 0.92rem;
  line-height: 1.35;
  border-radius: 2px;
  min-width: 0;
}

.tg-input:focus,
.tg-select:focus,
.tg-textarea:focus {
  outline: none;
  border-color: var(--mp-blue);
}

.tg-search-input {
  flex: 1 1 240px;
}

.tg-search-select {
  flex: 0 1 190px;
}

.tg-btn {
  display: inline-flex;
  align-items: safe center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--mp-purple);
  color: var(--mp-white) !important;
  border: 1px solid var(--mp-purple);
  padding: 0.58rem 1.15rem;
  font-family: "Poppins", sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none !important;
  cursor: pointer;
  border-radius: 2px;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.tg-btn:hover,
.tg-btn:focus-visible {
  background: var(--mp-blue);
  border-color: var(--mp-blue);
  color: var(--mp-white) !important;
}

.tg-btn-secondary {
  background: #171717;
  border-color: rgba(255, 255, 255, 0.24);
  color: var(--mp-text) !important;
}

.tg-btn-secondary:hover,
.tg-btn-secondary:focus-visible {
  background: #241f36;
  border-color: var(--mp-purple-light);
  color: var(--mp-yellow) !important;
}

.tg-btn.active {
  background: var(--mp-blue);
  border-color: var(--mp-blue);
  color: var(--mp-white) !important;
}

.tg-section-heading {
  font-family: "Poppins", sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--mp-white);
  margin: 0 0 0.85rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--mp-border);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}

.tg-section-count {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--mp-muted);
}

/* Band Logo Grids */
.tg-band-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
  gap: 0.9rem;
  margin-bottom: 2rem;
}

.tg-band-grid-compact {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr));
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.tg-band-card {
  display: flex;
  flex-direction: column;
  background: var(--mp-panel);
  border: 1px solid var(--mp-border);
  text-decoration: none !important;
  overflow: hidden;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.tg-band-card:hover,
.tg-band-card:focus-visible {
  border-color: var(--mp-purple-light);
  transform: translateY(-2px);
}

.tg-band-card:hover .tg-band-name {
  color: var(--mp-yellow);
}

.tg-band-logo-box {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #050507;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.tg-band-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tg-band-meta {
  padding: 0.65rem 0.8rem;
}

.tg-band-name {
  font-family: "Poppins", sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--mp-white);
  line-height: 1.3;
  transition: color 0.18s ease;
}

.tg-band-sub {
  font-size: 0.78rem;
  color: var(--mp-muted);
  margin-top: 0.18rem;
}

/* Panels, Lists & Breadcrumbs */
.tg-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: safe center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.88rem;
}

.tg-crumb-trail {
  display: flex;
  flex-wrap: wrap;
  align-items: safe center;
  gap: 0.45rem;
  color: var(--mp-muted);
}

.tg-crumb-trail a {
  color: var(--mp-white);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tg-crumb-trail a:hover {
  color: var(--mp-yellow);
}

.tg-panel {
  background: var(--mp-panel);
  border: 1px solid var(--mp-border);
  padding: 1.35rem;
  margin-bottom: 1.5rem;
}

.tg-panel-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: safe center;
  gap: 1rem;
  padding-bottom: 0.95rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--mp-border);
}

.tg-row-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.tg-row-link {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: safe center;
  gap: 0.75rem;
  padding: 0.7rem 0.95rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--mp-purple);
  text-decoration: none !important;
  color: var(--mp-text);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.tg-row-link:hover,
.tg-row-link:focus-visible {
  background: rgba(101, 44, 143, 0.22);
  border-color: var(--mp-purple-light);
  border-left-color: var(--mp-yellow);
}

.tg-row-link:hover .tg-row-primary {
  color: var(--mp-yellow);
}

.tg-row-date {
  font-family: "Poppins", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--mp-yellow);
  min-width: 96px;
}

.tg-row-primary {
  font-weight: 600;
  color: var(--mp-white);
  transition: color 0.15s ease;
}

.tg-row-cta {
  font-size: 0.8rem;
  font-weight: 600;
  color: #cbb2e8;
  white-space: nowrap;
}

/* Two-Column Layouts (Show Detail & Bottom Career Insights) */
.tg-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.95fr);
  gap: 1.35rem;
  align-items: start;
}

.tg-equal-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: start;
}

.tg-setlist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.tg-setlist-item {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  padding: 0.42rem 0.65rem;
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tg-setlist-num {
  min-width: 26px;
  font-weight: 700;
  font-size: 0.84rem;
  color: var(--mp-muted);
}

.tg-setlist-song {
  color: var(--mp-white);
  font-weight: 500;
  text-decoration: none;
}

.tg-setlist-song:hover {
  color: var(--mp-yellow);
  text-decoration: underline;
}

.tg-setlist-marker {
  padding: 0.42rem 0.75rem;
  margin: 0.35rem 0 0.15rem;
  background: rgba(101, 44, 143, 0.28);
  border-left: 3px solid var(--mp-purple-light);
  color: var(--mp-yellow);
  font-family: "Poppins", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tg-subbox {
  background: #0a0812;
  border: 1px solid var(--mp-border);
  padding: 1.05rem;
}

.tg-subbox-title {
  font-family: "Poppins", sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--mp-white);
  margin: 0 0 0.65rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tg-lineup-row {
  display: flex;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.32rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.88rem;
}

.tg-lineup-row:last-child {
  border-bottom: 0;
}

/* Classic YouTube Feed (/youtube/) */
.mp-yt-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: safe center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--mp-border);
}

.mp-yt-channel {
  display: inline-flex;
  align-items: safe center;
  gap: 0.85rem;
  text-decoration: none !important;
}

.mp-yt-channel img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--mp-purple);
}

.mp-yt-channel h3 {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-size: 1.25rem;
  color: var(--mp-white);
}

.mp-yt-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.mp-yt-card {
  background: var(--mp-panel);
  border: 1px solid var(--mp-border);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.mp-yt-card:hover {
  border-color: var(--mp-purple-light);
  transform: translateY(-2px);
}

.mp-yt-card:hover .mp-yt-card-title {
  color: var(--mp-yellow);
}

.mp-yt-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.mp-yt-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mp-yt-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.28);
}

.mp-yt-play span {
  width: 52px;
  height: 36px;
  border-radius: 8px;
  background: rgba(204, 0, 0, 0.9);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.mp-yt-card-body {
  padding: 0.75rem 0.85rem;
}

.mp-yt-card-meta {
  font-size: 0.76rem;
  color: var(--mp-muted);
  margin-bottom: 0.25rem;
}

.mp-yt-card-title {
  font-family: "Poppins", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--mp-white);
  line-height: 1.35;
}

.mp-yt-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.mp-yt-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.86);
  display: none;
  align-items: safe center;
  justify-content: safe center;
  padding: 1rem;
  overflow-y: auto;
}

.mp-yt-modal-box {
  width: min(920px, 100%);
  background: var(--mp-panel);
  border: 1px solid var(--mp-purple-light);
}

.mp-yt-modal-top {
  display: flex;
  justify-content: space-between;
  align-items: safe center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: #0a0812;
  border-bottom: 1px solid var(--mp-border);
}

/* Classic Discography & Videography Catalog (Redesign Format in Classic Theme) */
.mp-cat-wrap,
.mp-cat-wrap * {
  box-sizing: border-box;
}

.mp-cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.85rem;
}

.mp-cat-pill {
  display: inline-flex;
  align-items: safe center;
  padding: 0.42rem 0.85rem;
  background: var(--mp-panel);
  border: 1px solid var(--mp-border);
  color: var(--mp-text) !important;
  font-family: "Poppins", sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none !important;
  border-radius: 2px;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.mp-cat-pill:hover,
.mp-cat-pill:focus-visible {
  background: #211a33;
  border-color: var(--mp-purple-light);
  color: var(--mp-yellow) !important;
}

.mp-cat-pill.active {
  background: var(--mp-purple);
  border-color: var(--mp-purple-light);
  color: var(--mp-white) !important;
  font-weight: 600;
}

.mp-cat-group {
  margin-bottom: 2.6rem;
}

.mp-cat-group-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--mp-purple);
}

.mp-cat-group-title {
  font-family: "Poppins", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--mp-white);
  margin: 0;
}

.mp-cat-group-count {
  font-family: "Poppins", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--mp-yellow);
}

.mp-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
  gap: 1rem;
}

.mp-release-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--mp-panel);
  border: 1px solid var(--mp-border);
  text-decoration: none !important;
  overflow: hidden;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

a.mp-release-card:hover,
a.mp-release-card:focus-visible {
  border-color: var(--mp-purple-light);
  transform: translateY(-2px);
}

a.mp-release-card:hover .mp-release-title {
  color: var(--mp-yellow);
}

.mp-release-card.is-archive {
  opacity: 0.92;
}

.mp-cover-box {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #06050a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mp-cover-box.is-tall {
  aspect-ratio: 3 / 4;
}

.mp-cover-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.mp-cover-box.is-tall img {
  object-fit: contain;
  background: #050409;
}

a.mp-release-card:hover .mp-cover-box img {
  transform: scale(1.03);
}

.mp-release-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.16rem 0.5rem;
  font-family: "Poppins", sans-serif;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--mp-purple);
  color: var(--mp-white);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.mp-release-badge.is-shop {
  background: #1b1605;
  color: var(--mp-yellow);
  border-color: rgba(255, 247, 0, 0.55);
}

.mp-release-body {
  padding: 0.7rem 0.8rem 0.75rem;
}

.mp-release-title {
  font-family: "Poppins", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--mp-white);
  line-height: 1.35;
  transition: color 0.18s ease;
}

.mp-release-footer {
  padding: 0.52rem 0.8rem;
  background: #08060f;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-family: "Poppins", sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
  color: #cbb2e8;
  display: flex;
  justify-content: space-between;
  align-items: safe center;
}

.mp-release-footer.is-shop {
  color: var(--mp-yellow);
}

.mp-release-footer.is-archive {
  color: var(--mp-muted);
  font-weight: 500;
}

@media (max-width: 860px) {
  .tg-stats-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tg-two-col,
  .tg-equal-two-col {
    grid-template-columns: minmax(0, 1fr);
  }
  .mp-yt-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .tg-band-grid,
  .tg-band-grid-compact,
  .mp-media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }
  .tg-band-meta {
    padding: 0.5rem 0.6rem;
  }
  .tg-band-name {
    font-size: 0.82rem;
  }
  .tg-band-sub {
    font-size: 0.72rem;
  }
  .tg-panel {
    padding: 0.95rem;
  }
}
