/* Music & Video Studio — Extra Fly Rice
   Reorganized Block-by-Block World Architecture
   Compatible with all 5 site themes: rice-paper, cosmic-workshop, blueprint-lab, vapor-orchard, kinetic-editorial
*/

.studio-hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--border);
}

.studio-hero::after {
  content: '';
  position: absolute;
  width: 480px;
  height: 480px;
  top: -240px;
  right: -120px;
  border: 1px solid var(--border);
  border-radius: 50%;
  box-shadow: 0 0 0 55px color-mix(in srgb, var(--blue) 5%, transparent), 0 0 0 110px color-mix(in srgb, var(--accent) 5%, transparent);
  pointer-events: none;
}

.studio-hero h1 {
  max-width: 820px;
  margin: 0 0 18px;
  font-size: clamp(2.4rem, 6.5vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -.05em;
}

.section-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

section .display-heading {
  margin: 0 0 24px;
  color: var(--text);
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  letter-spacing: -.035em;
  text-transform: none;
}

/* Studio Pillars Grid */
.studio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 50px;
}

.studio-card {
  position: relative;
  min-height: 260px;
  padding: 26px 28px;
  color: var(--text);
  text-decoration: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .18s ease, border-color .18s ease;
}

.studio-card:hover { 
  transform: translateY(-4px); 
  border-color: var(--accent); 
}

.studio-card p { 
  color: var(--text-dim); 
  margin: 0 0 40px;
  line-height: 1.55;
  font-size: .95rem;
}

.studio-card h3 { 
  margin: 0 0 8px; 
  font-size: 1.35rem; 
}

.studio-card .arrow { 
  position: absolute; 
  left: 28px; 
  right: 28px; 
  bottom: 24px; 
  font-weight: 600;
  font-size: .9rem;
  color: var(--accent);
}

.card-icon { 
  display: block; 
  margin-bottom: 20px; 
  color: var(--blue); 
  font-size: 2.4rem; 
  line-height: 1; 
}

.film-card .card-icon { color: var(--accent); }

/* Sticky World Navigator Bar */
.world-nav-bar {
  position: sticky;
  top: 10px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  margin: 40px 0 50px;
  background: color-mix(in srgb, var(--bg-card) 92%, var(--bg));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
  overflow-x: auto;
  scrollbar-width: none;
}

.world-nav-bar::-webkit-scrollbar { display: none; }

.world-nav-label {
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-dim);
  white-space: nowrap;
  padding-right: 6px;
  border-right: 1px solid var(--border);
}

.world-nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  background: color-mix(in srgb, var(--bg) 60%, transparent);
  border: 1px solid var(--border);
  border-radius: 999px;
  white-space: nowrap;
  transition: all .15s ease;
}

.world-nav-pill:hover,
.world-nav-pill.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-1px);
}

/* Modular World Block Architecture */
.world-block {
  position: relative;
  margin-bottom: 60px;
  padding: 38px 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  scroll-margin-top: 90px;
  transition: border-color .2s ease;
}

.world-block:hover {
  border-color: color-mix(in srgb, var(--border) 60%, var(--accent));
}

/* Distinct world top accent strokes */
.world-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 36px;
  right: 36px;
  height: 3px;
  background: var(--accent);
  border-radius: 0 0 4px 4px;
  opacity: .85;
}

.world-andy::before { background: linear-gradient(90deg, #ffb84c, #52d9ff); }
.world-flyrice::before { background: linear-gradient(90deg, #f2b659, #8cd96a); }
.world-rosy::before { background: linear-gradient(90deg, #ff6b6b, #d94a8c); }
.world-lumi::before { background: linear-gradient(90deg, #58e0ad, #4da3ff); }
.world-lease::before { background: linear-gradient(90deg, #b98cff, #f28cb9); }
.world-ambient::before { background: linear-gradient(90deg, #6c5ce7, #00cec9); }

/* World Header */
.world-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
}

.world-header-info {
  flex: 1;
  min-width: 280px;
}

.world-kicker-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.world-badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 999px;
}

.world-title {
  margin: 4px 0 10px;
  font-size: clamp(1.7rem, 3.8vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 12px;
}

.world-desc {
  max-width: 740px;
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-dim);
}

.world-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-card-hover) 80%, transparent);
  color: var(--text);
  transition: all .15s ease;
}

.btn-pill:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.btn-pill-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-pill-primary:hover {
  background: color-mix(in srgb, var(--accent) 85%, #000);
  color: #fff;
  border-color: transparent;
}

/* Media Cards Grid */
.world-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
  margin-bottom: 24px;
}

.world-media-grid.single-feature {
  grid-template-columns: minmax(0, 1fr);
  max-width: 760px;
}

.media-card {
  display: flex;
  flex-direction: column;
  background: color-mix(in srgb, var(--bg) 40%, var(--bg-card));
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease;
}

.media-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.media-player-box {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  width: 100%;
}

.media-player-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-player-box iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.media-card-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.media-card-tag {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 8px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--blue);
}

.media-card-title {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.media-card-text {
  margin: 0 0 16px;
  font-size: .92rem;
  line-height: 1.55;
  color: var(--text-dim);
  flex: 1;
}

.media-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid color-mix(in srgb, var(--border) 40%, transparent);
}

.media-card-link {
  font-size: .88rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

.media-card-link:hover {
  text-decoration: underline;
}

/* Audio Player Deck (Mini Jukebox for Andy Huang OST) */
.audio-player-deck {
  background: color-mix(in srgb, var(--bg) 50%, var(--bg-card));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-top: 20px;
}

.audio-deck-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.audio-deck-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.audio-deck-tracklist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.track-btn {
  padding: 6px 14px;
  font-size: .82rem;
  font-weight: 600;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
  transition: all .15s ease;
}

.track-btn:hover,
.track-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.audio-deck-player {
  width: 100%;
  height: 40px;
  border-radius: 6px;
  outline: none;
}

/* Teaser / Placeholder Cards for In-Progress Worlds */
.teaser-card {
  padding: 30px;
  background: color-mix(in srgb, var(--bg-card) 95%, transparent);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.teaser-badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  border-radius: 999px;
  margin-bottom: 12px;
}

.teaser-card h4 {
  margin: 0 0 10px;
  font-size: 1.3rem;
  color: var(--text);
}

.teaser-card p {
  max-width: 580px;
  margin: 0 auto 20px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* Dual Column World Row (for Ambient & Dance Studios) */
.dual-world-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.sub-world-card {
  padding: 26px;
  background: color-mix(in srgb, var(--bg) 40%, var(--bg-card));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sub-world-card h4 {
  font-size: 1.25rem;
  margin: 6px 0 10px;
  color: var(--text);
}

.sub-world-card p {
  color: var(--text-dim);
  font-size: .92rem;
  line-height: 1.55;
  margin-bottom: 18px;
}

/* Subfolder Dedicated Page Layouts */
.subpage-hero {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--border);
}

.breadcrumb-nav {
  margin-bottom: 24px;
}

.breadcrumb-nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color .15s ease;
}

.breadcrumb-nav a:hover {
  color: var(--accent);
}

/* Mobile Responsive Adjustments */
@media (max-width: 820px) {
  .studio-grid {
    grid-template-columns: 1fr;
  }
  .world-block {
    padding: 24px 20px;
    margin-bottom: 40px;
  }
  .world-block::before {
    left: 20px;
    right: 20px;
  }
  .world-header {
    flex-direction: column;
    gap: 16px;
  }
  .world-actions {
    width: 100%;
  }
  .world-media-grid {
    grid-template-columns: 1fr;
  }
  .dual-world-grid {
    grid-template-columns: 1fr;
  }
  .studio-hero {
    padding: 50px 0 40px;
  }
  .studio-hero::after {
    display: none;
  }
}
