/*
Theme Name: XTM Beats
Theme URI: https://xtmmusic.com
Author: Mega Orbit
Description: Lightweight custom WordPress theme converted from the XTM static HTML design, with WooCommerce styling for Printful merch.
Version: 0.1.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: xtm-beats
*/

:root {
      --black: #0a0a0a;
      --near-black: #111111;
      --dark: #1a1a1a;
      --gold: #c9a44a;
      --gold-light: #e8c872;
      --gold-dark: #9a7b2e;
      --white: #f5f5f5;
      --gray: #888;
      --gray-dark: #444;
    }

    * { margin: 0; padding: 0; box-sizing: border-box; }

    body {
      font-family: 'Inter', sans-serif;
      background: var(--black);
      color: var(--white);
      line-height: 1.6;
      overflow-x: hidden;
    }

    .glitch-line {
      position: fixed;
      top: 0; left: 0; right: 0;
      height: 2px;
      background: var(--gold);
      opacity: 0.3;
      animation: scanline 4s ease-in-out infinite;
      pointer-events: none;
      z-index: 9999;
    }

    @keyframes scanline {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(100vh); }
    }

    nav {
      position: fixed;
      top: 0; left: 0; right: 0;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 1.2rem 3rem;
      background: rgba(10,10,10,0.95);
      backdrop-filter: blur(10px);
      z-index: 1000;
      border-bottom: 1px solid rgba(201,164,74,0.1);
    }

    .nav-brand {
      display: flex;
      align-items: center;
      gap: 1rem;
    }

    .nav-logo-img {
      height: 40px;
      width: auto;
      max-width: none;
      display: block;
      border-radius: 2px;
    }

    body.woocommerce img.nav-logo-img,
    body.woocommerce-page img.nav-logo-img,
    body.single-product img.nav-logo-img {
      height: 40px !important;
      width: auto !important;
      max-width: none !important;
      display: block;
      flex: 0 0 auto;
    }

    .logo-text {
      font-family: 'Bebas Neue', sans-serif;
      font-size: 1.6rem;
      letter-spacing: 3px;
      color: var(--gold);
    }

    .nav-links {
      display: flex;
      gap: 2.5rem;
      list-style: none;
    }

    .nav-links a {
      color: var(--gray);
      text-decoration: none;
      font-size: 0.85rem;
      font-weight: 500;
      letter-spacing: 1px;
      text-transform: uppercase;
      transition: color 0.3s;
    }

    .nav-links a:hover { color: var(--gold); }

    .hero {
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      text-align: center;
      padding: 8rem 2rem 4rem;
      position: relative;
      overflow: hidden;
    }

    .hero::before {
      content: '';
      position: absolute;
      top: -50%; left: -50%;
      width: 200%; height: 200%;
      background: radial-gradient(ellipse at center, rgba(201,164,74,0.08) 0%, transparent 60%);
      animation: pulse-gold 6s ease-in-out infinite;
    }

    @keyframes pulse-gold {
      0%, 100% { opacity: 0.5; transform: scale(1); }
      50% { opacity: 1; transform: scale(1.1); }
    }

    .hero-content { position: relative; z-index: 2; }

    .hero-logo {
      width: 120px;
      height: 120px;
      object-fit: cover;
      border-radius: 50%;
      border: 2px solid rgba(201,164,74,0.3);
      margin-bottom: 2rem;
      box-shadow: 0 0 40px rgba(201,164,74,0.2);
    }

    .hero h1 {
      font-family: 'Bebas Neue', sans-serif;
      font-size: clamp(4rem, 12vw, 10rem);
      letter-spacing: 8px;
      line-height: 0.9;
      margin-bottom: 1rem;
      background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .hero-sub {
      font-size: 1.1rem;
      color: var(--gray);
      letter-spacing: 6px;
      text-transform: uppercase;
      margin-bottom: 3rem;
    }

    .hero-cta {
      display: inline-flex;
      align-items: center;
      gap: 0.8rem;
      padding: 1.2rem 3rem;
      background: var(--gold);
      color: var(--black);
      text-decoration: none;
      font-weight: 700;
      font-size: 0.95rem;
      letter-spacing: 2px;
      text-transform: uppercase;
      border-radius: 2px;
      transition: all 0.3s;
    }

    .hero-cta:hover {
      background: var(--gold-light);
      transform: translateY(-2px);
      box-shadow: 0 10px 40px rgba(201,164,74,0.3);
    }

    .hero-stats {
      display: flex;
      gap: 4rem;
      margin-top: 4rem;
      position: relative;
      z-index: 2;
    }

    .stat { text-align: center; }
    .stat-number {
      font-family: 'Bebas Neue', sans-serif;
      font-size: 3rem;
      color: var(--gold);
      line-height: 1;
    }
    .stat-label {
      font-size: 0.75rem;
      color: var(--gray);
      letter-spacing: 2px;
      text-transform: uppercase;
      margin-top: 0.5rem;
    }

    section { padding: 6rem 2rem; position: relative; }
    .section-title {
      font-family: 'Bebas Neue', sans-serif;
      font-size: clamp(2.5rem, 6vw, 4rem);
      letter-spacing: 4px;
      text-align: center;
      margin-bottom: 1rem;
      color: var(--white);
    }
    .section-sub {
      text-align: center;
      color: var(--gray);
      font-size: 1rem;
      margin-bottom: 4rem;
      letter-spacing: 2px;
    }

    /* BEAT PACKS */
    .packs {
      background: var(--near-black);
      border-top: 1px solid rgba(201,164,74,0.1);
    }

    .packs-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
      gap: 2rem;
      max-width: 1200px;
      margin: 0 auto;
    }

    .pack-card {
      background: var(--dark);
      border: 1px solid rgba(201,164,74,0.15);
      border-radius: 4px;
      overflow: hidden;
      transition: all 0.4s;
      position: relative;
    }

    .pack-card:hover {
      border-color: rgba(201,164,74,0.4);
      transform: translateY(-8px);
      box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    }

    .pack-card.featured {
      border-color: rgba(201,164,74,0.5);
    }

    .pack-card.featured::before {
      content: 'MOST POPULAR';
      position: absolute;
      top: 1rem; right: -3rem;
      background: var(--gold);
      color: var(--black);
      font-size: 0.7rem;
      font-weight: 700;
      letter-spacing: 2px;
      padding: 0.4rem 3rem;
      transform: rotate(45deg);
      z-index: 10;
    }

    .pack-image {
      width: 100%;
      aspect-ratio: 1;
      object-fit: cover;
      border-bottom: 1px solid rgba(201,164,74,0.1);
    }

    .pack-body { padding: 2rem; }

    .pack-name {
      font-family: 'Bebas Neue', sans-serif;
      font-size: 1.8rem;
      letter-spacing: 3px;
      margin-bottom: 0.5rem;
    }

    .pack-price {
      font-size: 2.5rem;
      font-weight: 800;
      color: var(--gold);
      margin-bottom: 1.5rem;
    }

    .pack-price span {
      font-size: 1rem;
      color: var(--gray);
      font-weight: 400;
    }

    .pack-features {
      list-style: none;
      margin-bottom: 2rem;
    }

    .pack-features li {
      padding: 0.5rem 0;
      font-size: 0.9rem;
      color: var(--gray);
      display: flex;
      align-items: center;
      gap: 0.8rem;
    }

    .pack-features li::before {
      content: '✦';
      color: var(--gold);
      font-size: 0.7rem;
    }

    .pack-btn {
      display: block;
      width: 100%;
      padding: 1rem;
      text-align: center;
      background: transparent;
      border: 2px solid var(--gold);
      color: var(--gold);
      text-decoration: none;
      font-weight: 700;
      font-size: 0.9rem;
      letter-spacing: 2px;
      text-transform: uppercase;
      border-radius: 2px;
      transition: all 0.3s;
    }

    .pack-btn:hover {
      background: var(--gold);
      color: var(--black);
    }

    .pack-card.featured .pack-btn {
      background: var(--gold);
      color: var(--black);
    }

    .pack-card.featured .pack-btn:hover {
      background: var(--gold-light);
    }

    /* STORE / MERCH */
    .merch {
      background: var(--black);
      border-top: 1px solid rgba(201,164,74,0.1);
    }

    .merch-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 2rem;
      max-width: 1200px;
      margin: 0 auto;
    }

    .merch-card {
      background: var(--dark);
      border: 1px solid rgba(201,164,74,0.15);
      border-radius: 4px;
      overflow: hidden;
      transition: all 0.4s;
    }

    .merch-card:hover {
      border-color: rgba(201,164,74,0.4);
      transform: translateY(-6px);
      box-shadow: 0 15px 50px rgba(0,0,0,0.4);
    }

    .merch-image {
      width: 100%;
      aspect-ratio: 1;
      object-fit: cover;
      border-bottom: 1px solid rgba(201,164,74,0.1);
    }

    .merch-body { padding: 1.5rem; }

    .merch-name {
      font-family: 'Bebas Neue', sans-serif;
      font-size: 1.4rem;
      letter-spacing: 2px;
      margin-bottom: 0.3rem;
    }

    .merch-desc {
      font-size: 0.85rem;
      color: var(--gray);
      margin-bottom: 1rem;
    }

    .merch-price {
      font-size: 1.5rem;
      font-weight: 800;
      color: var(--gold);
      margin-bottom: 1rem;
    }

    .merch-btn {
      display: block;
      width: 100%;
      padding: 0.8rem;
      text-align: center;
      background: transparent;
      border: 1px solid var(--gold);
      color: var(--gold);
      text-decoration: none;
      font-weight: 600;
      font-size: 0.8rem;
      letter-spacing: 2px;
      text-transform: uppercase;
      border-radius: 2px;
      transition: all 0.3s;
    }

    .merch-btn:hover {
      background: var(--gold);
      color: var(--black);
    }

    /* ARTIST GALLERY */
    .gallery {
      background: var(--near-black);
      border-top: 1px solid rgba(201,164,74,0.1);
    }

    .gallery-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 1.5rem;
      max-width: 1200px;
      margin: 0 auto;
    }

    .gallery-item {
      position: relative;
      overflow: hidden;
      border-radius: 4px;
      border: 1px solid rgba(201,164,74,0.15);
      transition: all 0.4s;
    }

    .gallery-item:hover {
      border-color: rgba(201,164,74,0.4);
      transform: scale(1.02);
    }

    .gallery-item img {
      width: 100%;
      aspect-ratio: 4/3;
      object-fit: cover;
      display: block;
      transition: transform 0.4s;
    }

    .gallery-item:hover img {
      transform: scale(1.1);
    }

    .gallery-overlay {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      padding: 1.5rem;
      background: linear-gradient(transparent, rgba(10,10,10,0.9));
      opacity: 0;
      transition: opacity 0.3s;
    }

    .gallery-item:hover .gallery-overlay {
      opacity: 1;
    }

    .gallery-title {
      font-family: 'Bebas Neue', sans-serif;
      font-size: 1.3rem;
      letter-spacing: 2px;
      color: var(--gold);
    }

    .gallery-desc {
      font-size: 0.8rem;
      color: var(--gray);
      margin-top: 0.3rem;
    }

    /* Audio Player */
    .preview-section {
      background: var(--black);
      padding: 6rem 2rem;
    }

    .preview-container {
      max-width: 900px;
      margin: 0 auto;
    }

    .preview-header {
      text-align: center;
      margin-bottom: 3rem;
    }

    .preview-header h2 {
      font-family: 'Bebas Neue', sans-serif;
      font-size: clamp(2.5rem, 6vw, 4rem);
      letter-spacing: 4px;
      margin-bottom: 0.5rem;
    }

    .preview-header p {
      color: var(--gray);
      letter-spacing: 2px;
    }

    .tier-tabs {
      display: flex;
      justify-content: center;
      gap: 1rem;
      margin-bottom: 2rem;
      flex-wrap: wrap;
    }

    .tier-tab {
      padding: 0.8rem 2rem;
      background: var(--dark);
      border: 1px solid rgba(201,164,74,0.2);
      color: var(--gray);
      font-family: 'Inter', sans-serif;
      font-size: 0.85rem;
      font-weight: 600;
      letter-spacing: 2px;
      text-transform: uppercase;
      cursor: pointer;
      border-radius: 2px;
      transition: all 0.3s;
    }

    .tier-tab:hover, .tier-tab.active {
      background: var(--gold);
      color: var(--black);
      border-color: var(--gold);
    }

    .beat-list {
      background: var(--near-black);
      border: 1px solid rgba(201,164,74,0.1);
      border-radius: 4px;
      overflow: hidden;
    }

    .beat-item {
      display: grid;
      grid-template-columns: 60px 1fr auto 120px;
      align-items: center;
      padding: 1rem 1.5rem;
      border-bottom: 1px solid rgba(201,164,74,0.05);
      transition: background 0.3s;
    }

    .beat-item:hover {
      background: rgba(201,164,74,0.03);
    }

    .beat-item:last-child { border-bottom: none; }

    .beat-play {
      width: 64px;
      height: 44px;
      border-radius: 999px;
      background: var(--gold);
      border: none;
      color: var(--black);
      font-size: 0.72rem;
      font-weight: 900;
      letter-spacing: 1px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.3s;
    }

    .beat-play:hover {
      background: var(--gold-light);
      transform: scale(1.1);
    }

    .beat-play.playing {
      background: var(--near-black);
      color: var(--gold);
      border: 2px solid var(--gold);
    }

    .beat-play[aria-busy="true"] {
      opacity: 0.75;
      cursor: wait;
    }

    .music-pack-order {
      padding: 5rem 2rem;
      background: linear-gradient(135deg, rgba(17,17,17,0.98), rgba(26,18,8,0.96));
      border-top: 1px solid rgba(201,164,74,0.18);
      border-bottom: 1px solid rgba(201,164,74,0.18);
    }

    .music-pack-order-inner {
      max-width: 1050px;
      margin: 0 auto;
      text-align: center;
    }

    .order-kicker {
      color: var(--gold-light);
      font-size: 0.8rem;
      font-weight: 800;
      letter-spacing: 3px;
      text-transform: uppercase;
      margin-bottom: 0.75rem;
    }

    .music-pack-order h2 {
      font-family: 'Bebas Neue', sans-serif;
      font-size: clamp(2.8rem, 7vw, 5rem);
      letter-spacing: 4px;
      color: var(--gold);
      margin-bottom: 1rem;
    }

    .music-pack-order p {
      max-width: 720px;
      margin: 0 auto 2rem;
      color: rgba(245,245,245,0.82);
    }

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

    .order-pack-card {
      display: flex;
      flex-direction: column;
      gap: 0.45rem;
      align-items: center;
      padding: 1.4rem;
      background: rgba(10,10,10,0.65);
      border: 1px solid rgba(201,164,74,0.22);
      border-radius: 16px;
      color: var(--white);
      text-decoration: none;
      transition: transform .25s ease, border-color .25s ease, background .25s ease;
      cursor: pointer;
    }

    .order-pack-card input {
      position: absolute;
      opacity: 0;
      pointer-events: none;
    }

    .order-pack-card:hover,
    .order-pack-card.selected {
      transform: translateY(-4px);
      border-color: var(--gold);
      background: rgba(201,164,74,0.11);
    }

    .order-pack-card span {
      color: var(--gold-light);
      font-weight: 800;
      letter-spacing: 1px;
      text-transform: uppercase;
    }

    .order-pack-card strong {
      font-family: 'Bebas Neue', sans-serif;
      font-size: 3rem;
      color: var(--white);
      line-height: 1;
    }

    .order-pack-card em {
      color: var(--black);
      background: var(--gold);
      border-radius: 999px;
      padding: 0.55rem 1rem;
      font-style: normal;
      font-weight: 900;
      letter-spacing: 1px;
      text-transform: uppercase;
    }

    .music-order-form {
      display: grid;
      gap: 1.4rem;
      margin-top: 1.75rem;
    }

    .order-form-fields {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 1rem;
      text-align: left;
    }

    .order-form-fields label {
      display: grid;
      gap: 0.45rem;
      color: rgba(245,245,245,0.9);
      font-weight: 800;
      letter-spacing: 0.5px;
      text-transform: uppercase;
    }

    .order-form-message {
      grid-column: 1 / -1;
    }

    .order-form-fields input,
    .order-form-fields textarea {
      width: 100%;
      border: 1px solid rgba(201,164,74,0.26);
      border-radius: 12px;
      background: rgba(0,0,0,0.45);
      color: var(--white);
      padding: 0.9rem 1rem;
      font: inherit;
      text-transform: none;
    }

    .order-form-fields input:focus,
    .order-form-fields textarea:focus {
      outline: 2px solid rgba(201,164,74,0.45);
      border-color: var(--gold);
    }

    .music-order-submit {
      justify-self: center;
      border: none;
      border-radius: 999px;
      background: var(--gold);
      color: var(--black);
      cursor: pointer;
      font-weight: 900;
      letter-spacing: 1.5px;
      padding: 1rem 2rem;
      text-transform: uppercase;
      transition: transform .25s ease, background .25s ease;
    }

    .music-order-submit:hover {
      background: var(--gold-light);
      transform: translateY(-2px);
    }

    .order-fallback {
      margin-bottom: 0;
      font-size: 0.9rem;
    }

    .order-fallback a {
      color: var(--gold-light);
      font-weight: 800;
    }

    .order-status {
      max-width: 720px;
      margin: 0 auto 1.25rem;
      border-radius: 12px;
      padding: 0.9rem 1rem;
      font-weight: 800;
    }

    .order-status-success {
      color: #d5ffd5;
      background: rgba(37, 135, 64, 0.22);
      border: 1px solid rgba(121, 220, 142, 0.35);
    }

    .order-status-error {
      color: #ffd8d8;
      background: rgba(145, 39, 39, 0.24);
      border: 1px solid rgba(255, 128, 128, 0.35);
    }

    .xtm-honeypot {
      position: absolute !important;
      left: -9999px !important;
      width: 1px !important;
      height: 1px !important;
      opacity: 0 !important;
    }

    @media (max-width: 768px) {
      .order-pack-grid { grid-template-columns: 1fr; }
      .order-form-fields { grid-template-columns: 1fr; }
    }

    .beat-info {
      padding-left: 1rem;
    }

    .beat-name {
      font-weight: 600;
      font-size: 0.95rem;
      color: var(--white);
      margin-bottom: 0.2rem;
    }

    .beat-meta {
      font-size: 0.75rem;
      color: var(--gray);
      letter-spacing: 1px;
    }

    .beat-tag {
      padding: 0.3rem 0.8rem;
      border-radius: 2px;
      font-size: 0.7rem;
      font-weight: 700;
      letter-spacing: 1px;
      text-transform: uppercase;
    }

    .tag-starter { background: rgba(201,164,74,0.15); color: var(--gold); }
    .tag-producer { background: rgba(138,43,226,0.2); color: #a855f7; }
    .tag-platinum { background: rgba(192,192,192,0.15); color: #c0c0c0; }

    .beat-buy {
      padding: 0.6rem 1.2rem;
      background: transparent;
      border: 1px solid var(--gold);
      color: var(--gold);
      font-size: 0.75rem;
      font-weight: 700;
      letter-spacing: 1px;
      text-transform: uppercase;
      cursor: pointer;
      border-radius: 2px;
      transition: all 0.3s;
      text-decoration: none;
      text-align: center;
    }

    .beat-buy:hover {
      background: var(--gold);
      color: var(--black);
    }

    .beat-audio {
      grid-column: 2 / -1;
      width: 100%;
      height: 36px;
      margin-top: 0.75rem;
      accent-color: var(--gold);
    }

    .beat-audio::-webkit-media-controls-panel {
      background-color: rgba(201,164,74,0.92);
    }

    .waveform {
      grid-column: 1 / -1;
      height: 40px;
      margin-top: 0.5rem;
      background: linear-gradient(90deg, rgba(201,164,74,0.1) 0%, rgba(201,164,74,0.3) 50%, rgba(201,164,74,0.1) 100%);
      border-radius: 2px;
      position: relative;
      overflow: hidden;
    }

    .waveform-bar {
      position: absolute;
      bottom: 0;
      width: 3px;
      background: var(--gold);
      border-radius: 1px;
      animation: wave 1.2s ease-in-out infinite;
    }

    @keyframes wave {
      0%, 100% { height: 20%; opacity: 0.4; }
      50% { height: 80%; opacity: 1; }
    }

    /* ABOUT / STUDIO */
    .about {
      background: var(--near-black);
      border-top: 1px solid rgba(201,164,74,0.1);
      padding: 6rem 2rem;
    }

    .about-grid {
      max-width: 1000px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 4rem;
      align-items: center;
    }

    .about-text h3 {
      font-family: 'Bebas Neue', sans-serif;
      font-size: 2rem;
      letter-spacing: 3px;
      margin-bottom: 1.5rem;
      color: var(--gold);
    }

    .about-text p {
      color: var(--gray);
      font-size: 0.95rem;
      margin-bottom: 1rem;
      line-height: 1.8;
    }

    .about-image {
      width: 100%;
      aspect-ratio: 4/3;
      object-fit: cover;
      border-radius: 4px;
      border: 1px solid rgba(201,164,74,0.2);
    }

    /* FOOTER */
    footer {
      background: var(--black);
      border-top: 1px solid rgba(201,164,74,0.1);
      padding: 4rem 2rem 2rem;
      text-align: center;
    }

    .footer-brand {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 1rem;
      margin-bottom: 1rem;
    }

    .footer-logo-img {
      height: 50px;
      width: auto;
      max-width: none;
      display: block;
      border-radius: 2px;
    }

    body.woocommerce img.footer-logo-img,
    body.woocommerce-page img.footer-logo-img,
    body.single-product img.footer-logo-img {
      height: 50px !important;
      width: auto !important;
      max-width: none !important;
      display: block;
      flex: 0 0 auto;
    }

    .footer-logo {
      font-family: 'Bebas Neue', sans-serif;
      font-size: 2rem;
      color: var(--gold);
      letter-spacing: 4px;
    }

    .footer-links {
      display: flex;
      justify-content: center;
      gap: 2rem;
      margin-bottom: 2rem;
      flex-wrap: wrap;
    }

    .footer-links a {
      color: var(--gray);
      text-decoration: none;
      font-size: 0.85rem;
      letter-spacing: 1px;
      transition: color 0.3s;
    }

    .footer-links a:hover { color: var(--gold); }

    .footer-copy {
      color: var(--gray-dark);
      font-size: 0.8rem;
      letter-spacing: 1px;
    }

    .footer-legal-links {
      display: flex;
      justify-content: center;
      gap: 1.2rem;
      margin-bottom: 1.2rem;
      flex-wrap: wrap;
    }

    .footer-legal-links a {
      color: var(--gray-dark);
      text-decoration: none;
      font-size: 0.75rem;
      letter-spacing: 0.5px;
      transition: color 0.3s;
    }

    .footer-legal-links a:hover { color: var(--gold); }

    @media (max-width: 768px) {
      nav { padding: 1rem 1.5rem; }
      .nav-links { display: none; }
      .hero-stats { gap: 2rem; }
      .about-grid { grid-template-columns: 1fr; }
      .packs-grid { grid-template-columns: 1fr; }
      .merch-grid { grid-template-columns: repeat(2, 1fr); }
      .gallery-grid { grid-template-columns: 1fr; }
      .beat-item {
        grid-template-columns: 72px 1fr auto;
        gap: 0.5rem;
      }
      .beat-buy { grid-column: 2; grid-row: 2; margin-top: 0.5rem; }
      .beat-audio { grid-column: 1 / -1; grid-row: 3; }
      .waveform { grid-column: 1 / -1; }
    }

/* WordPress and WooCommerce integration */
body.admin-bar nav { top: 32px; }
@media screen and (max-width: 782px) { body.admin-bar nav { top: 46px; } }

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.xtm-page,
.xtm-post,
.xtm-woocommerce {
  padding: 8rem 3rem 5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.xtm-content-card {
  background: var(--near-black);
  border: 1px solid rgba(201,164,74,0.16);
  border-radius: 16px;
  padding: 2rem;
}

.xtm-content-card h1,
.xtm-content-card h2,
.xtm-content-card h3 {
  font-family: 'Bebas Neue', sans-serif;
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.xtm-content-card a { color: var(--gold-light); }

.woocommerce .xtm-woocommerce,
.woocommerce-page .xtm-woocommerce { color: var(--white); }

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  background: var(--near-black);
  border: 1px solid rgba(201,164,74,0.16);
  border-radius: 14px;
  overflow: hidden;
  padding: 0 0 1.5rem;
  transition: transform .25s ease, border-color .25s ease;
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce div.product .product_title {
  color: var(--gold);
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 1.5px;
}

.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price { color: var(--gold-light); }

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce .button {
  background: var(--gold) !important;
  color: var(--black) !important;
  border-radius: 0;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
  background: var(--gold-light) !important;
  color: var(--black) !important;
}

.woocommerce div.product,
.woocommerce-cart-form,
.woocommerce-checkout,
.woocommerce-order {
  background: var(--near-black);
  border: 1px solid rgba(201,164,74,0.16);
  border-radius: 16px;
  padding: 2rem;
}

.woocommerce div.product div.images {
  background:
    radial-gradient(circle at 50% 38%, rgba(232,200,114,0.20), transparent 42%),
    linear-gradient(145deg, #252525, #121212 68%);
  border: 1px solid rgba(201,164,74,0.28);
  border-radius: 18px;
  padding: 1.5rem;
  overflow: hidden;
  box-shadow: inset 0 0 70px rgba(201,164,74,0.07), 0 22px 70px rgba(0,0,0,0.35);
}

.woocommerce div.product div.images .woocommerce-product-gallery__wrapper,
.woocommerce div.product div.images .woocommerce-product-gallery__image {
  margin: 0;
}

.woocommerce div.product div.images .woocommerce-product-gallery__image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: brightness(1.16) contrast(1.08) drop-shadow(0 20px 36px rgba(0,0,0,0.55));
}

.woocommerce div.product form.cart .variations select,
.woocommerce div.product form.cart input.qty {
  background: #181818;
  color: var(--white);
  border: 1px solid rgba(201,164,74,0.38);
  min-height: 40px;
  padding: 0.45rem 0.75rem;
}

.woocommerce div.product form.cart .variations select option {
  background: #181818;
  color: var(--white);
}

.woocommerce table.shop_table,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  background: var(--dark);
  color: var(--white);
  border: 1px solid rgba(201,164,74,0.28);
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  background: var(--near-black);
  color: var(--white);
  border-top-color: var(--gold);
}

.xtm-empty-store-note {
  text-align: center;
  color: var(--gray);
  padding: 1.5rem 0 0;
}

/* Realm / Books integration */
.realm-teaser,
.realm-page {
  position: relative;
  overflow: hidden;
}

.realm-teaser {
  padding: 6rem 2rem;
  background:
    radial-gradient(circle at 20% 20%, rgba(232, 200, 114, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(10, 10, 10, 0.98), rgba(26, 18, 8, 0.96));
  border-top: 1px solid rgba(201, 164, 74, 0.2);
  border-bottom: 1px solid rgba(201, 164, 74, 0.2);
}

.realm-teaser-inner {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
  background: rgba(17, 17, 17, 0.72);
  border: 1px solid rgba(201, 164, 74, 0.24);
  border-radius: 22px;
  padding: 3rem;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.35);
}

.realm-kicker {
  color: var(--gold-light);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.realm-teaser h2,
.realm-page h1,
.realm-page h2,
.realm-page h3 {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 3px;
}

.realm-teaser h2 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  color: var(--gold);
  margin-bottom: 1rem;
}

.realm-teaser p,
.realm-page p,
.realm-page li {
  color: rgba(245, 245, 245, 0.82);
}

.realm-primary-btn,
.realm-secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.realm-primary-btn {
  background: var(--gold);
  color: var(--black);
  border: 1px solid var(--gold);
}

.realm-secondary-btn {
  background: transparent;
  color: var(--gold-light);
  border: 1px solid rgba(201, 164, 74, 0.48);
}

.realm-primary-btn:hover,
.realm-secondary-btn:hover {
  transform: translateY(-2px);
}

.realm-page {
  background:
    radial-gradient(circle at top right, rgba(201, 164, 74, 0.16), transparent 34%),
    radial-gradient(circle at bottom left, rgba(154, 123, 46, 0.12), transparent 36%),
    var(--black);
}

.realm-hero {
  min-height: 92vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 9rem 2rem 5rem;
  position: relative;
}

.realm-orb {
  display: none;
}

.realm-hero-content {
  max-width: 980px;
  position: relative;
  z-index: 1;
}

.realm-hero h1 {
  font-size: clamp(4rem, 10vw, 9rem);
  line-height: 0.92;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.realm-subtitle {
  max-width: 760px;
  margin: 0 auto 2rem;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.realm-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.realm-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.realm-story-page {
  background:
    radial-gradient(circle at 12% 8%, rgba(65, 108, 136, 0.2), transparent 28%),
    radial-gradient(circle at 84% 20%, rgba(201, 164, 74, 0.13), transparent 26%),
    linear-gradient(180deg, #070707 0%, #0e1118 42%, #070707 100%);
}

.realm-story-hero {
  min-height: 78vh;
  overflow: hidden;
}

.realm-story-hero::before,
.realm-story-hero::after {
  content: '';
  position: absolute;
  inset: auto;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(12px);
  opacity: 0.6;
}

.realm-story-hero::before {
  width: 220px;
  height: 220px;
  left: 6%;
  bottom: 12%;
  background: radial-gradient(circle, rgba(125, 211, 252, 0.18), transparent 68%);
}

.realm-story-hero::after {
  width: 280px;
  height: 280px;
  right: 6%;
  top: 20%;
  background: radial-gradient(circle, rgba(232, 200, 114, 0.16), transparent 70%);
}

.realm-section-intro {
  max-width: 760px;
  margin: 0 auto 2rem;
  text-align: center;
  color: rgba(245,245,245,0.78);
}

.realm-story-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.realm-story-cover img {
  max-width: 420px;
  border: 1px solid rgba(232, 200, 114, 0.42);
  box-shadow: 0 28px 80px rgba(0,0,0,0.58), 0 0 40px rgba(201,164,74,0.12);
}

.realm-story-copy {
  background: rgba(7, 7, 7, 0.56);
  border: 1px solid rgba(201,164,74,0.18);
  border-radius: 26px;
  padding: clamp(1.5rem, 4vw, 2.6rem);
}

.realm-story-copy h2 {
  color: var(--white);
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 0.98;
  margin-bottom: 1rem;
}

.realm-story-copy p {
  color: rgba(245,245,245,0.78);
  font-size: 1.05rem;
}

.realm-clue-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.realm-clue-list span {
  border: 1px solid rgba(232,200,114,0.22);
  border-radius: 999px;
  padding: 0.75rem 0.95rem;
  color: var(--gold-light);
  background: rgba(201,164,74,0.08);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.realm-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 2rem;
  align-items: stretch;
}

.realm-copy h2,
.realm-section > h2 {
  color: var(--white);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  margin-bottom: 1rem;
}

.realm-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 2rem 0;
  list-style: none;
}

.realm-checklist li,
.realm-library-card,
.realm-panel,
.realm-signup-card,
.realm-copy-grid > div {
  background: rgba(17, 17, 17, 0.82);
  border: 1px solid rgba(201, 164, 74, 0.18);
  border-radius: 18px;
}

.realm-checklist li {
  padding: 0.9rem 1rem;
}

.realm-checklist li::before {
  content: '✦';
  color: var(--gold);
  margin-right: 0.6rem;
}

.realm-signup-card,
.realm-panel {
  padding: 2rem;
}

.realm-book-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 420px;
  background:
    linear-gradient(160deg, rgba(201, 164, 74, 0.16), rgba(17, 17, 17, 0.9)),
    var(--near-black);
}

.realm-book-card-cover {
  margin: 0 0 1.4rem;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(232, 200, 114, 0.42);
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
}

.realm-book-card-cover img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  object-position: center top;
}

.realm-badge,
.realm-library-card span {
  color: var(--black);
  background: var(--gold);
  border-radius: 999px;
  display: inline-flex;
  width: fit-content;
  padding: 0.35rem 0.8rem;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.realm-link {
  color: var(--gold-light);
  font-weight: 800;
  margin-top: 1rem;
}

.realm-library-grid,
.realm-copy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.realm-library-card,
.realm-copy-grid > div {
  padding: 1.5rem;
}

.realm-library-card h3,
.realm-panel h3,
.realm-signup-card h3,
.realm-copy-grid h3 {
  color: var(--gold);
  font-size: 1.9rem;
  line-height: 1.05;
  margin-bottom: 0.8rem;
}

.realm-path {
  display: grid;
  grid-template-columns: repeat(7, minmax(110px, 1fr));
  gap: 0.75rem;
  margin-top: 2rem;
}

.realm-path div {
  border: 1px solid rgba(201, 164, 74, 0.22);
  background: rgba(201, 164, 74, 0.08);
  border-radius: 999px;
  padding: 0.85rem 1rem;
  color: var(--gold-light);
  text-align: center;
  font-size: 0.85rem;
  font-weight: 800;
}

.realm-link-box {
  border: 1px dashed rgba(232, 200, 114, 0.6);
  border-radius: 16px;
  padding: 1.2rem;
  color: var(--gold-light);
  background: rgba(17, 17, 17, 0.8);
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 900;
  text-align: center;
  margin: 1.5rem 0 2rem;
}

@media (max-width: 980px) {
  .realm-intro,
  .realm-story-grid,
  .realm-audio-grid,
  .realm-library-grid,
  .realm-copy-grid {
    grid-template-columns: 1fr;
  }

  .realm-path {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .realm-teaser-inner,
  .realm-signup-card,
  .realm-panel,
  .realm-library-card,
  .realm-copy-grid > div {
    padding: 1.4rem;
  }

  .realm-checklist,
  .realm-clue-list,
  .realm-path {
    grid-template-columns: 1fr;
  }
}


/* Realm download cards */
.realm-download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.realm-download-card {
  display: block;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 1rem;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: transform .15s ease, background .15s ease;
}
.realm-download-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.22);
}
.realm-download-label {
  display: inline-block;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  background: rgba(255,255,255,0.12);
  padding: .25rem .6rem;
  border-radius: 999px;
  margin-bottom: .75rem;
}
.realm-download-card h3 {
  font-size: 1.15rem;
  margin: 0 0 .5rem;
  color: #fff;
}
.realm-download-card p {
  font-size: .95rem;
  opacity: .85;
  margin: 0 0 1rem;
}
.realm-download-action {
  display: inline-block;
  font-weight: 600;
  color: #7dd3fc;
}
.realm-download-meta {
  display: block;
  font-size: .8rem;
  opacity: .65;
  margin-bottom: .75rem;
}
.realm-download-icon {
  display: block;
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  color: var(--gold);
}
.realm-download-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}
.realm-download-card {
  display: flex;
  flex-direction: column;
  min-height: 220px;
}
.realm-download-card h3 {
  margin-top: 0;
}
.realm-download-card p {
  flex-grow: 1;
}
.realm-download-action {
  margin-top: auto;
  align-self: flex-start;
  background: rgba(125,211,252,0.12);
  padding: .35rem .8rem;
  border-radius: 999px;
}

/* Book cover preview */
.realm-book-preview .realm-covers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}
.realm-cover {
  margin: 0;
  text-align: center;
}
.realm-cover img {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  margin: 0 auto;
  border-radius: .5rem;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}
.realm-cover figcaption {
  margin-top: .75rem;
  font-size: .85rem;
  opacity: .7;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.realm-covers-single {
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

.realm-audio-preview {
  padding-top: 2rem;
}

.realm-audio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
  margin-top: 1.5rem;
}

.realm-audio-card {
  display: grid;
  gap: 1.4rem;
  background:
    linear-gradient(145deg, rgba(201, 164, 74, 0.14), rgba(17, 17, 17, 0.92)),
    rgba(17, 17, 17, 0.86);
  border: 1px solid rgba(232, 200, 114, 0.34);
  border-radius: 24px;
  padding: clamp(1.4rem, 4vw, 2.4rem);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.realm-audio-card-alt {
  background:
    linear-gradient(145deg, rgba(65, 108, 136, 0.18), rgba(17, 17, 17, 0.92)),
    rgba(17, 17, 17, 0.86);
}

.realm-audio-card h3 {
  color: var(--gold-light);
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  margin: 0 0 0.8rem;
}

.realm-audio-card p {
  max-width: 760px;
  color: rgba(245, 245, 245, 0.78);
  margin: 0;
}

.realm-audio-player {
  width: 100%;
  min-height: 48px;
  accent-color: var(--gold);
}

.realm-list-section {
  padding-top: 3rem;
}

.realm-list-card {
  max-width: 780px;
  margin: 0 auto;
}

.realm-list-card h2 {
  color: var(--white);
  font-size: clamp(2.3rem, 5vw, 4rem);
  margin-bottom: 1rem;
}

.realm-teaser-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.realm-gallery-intro {
  max-width: 760px;
  margin: 0 auto 2rem;
  text-align: center;
  color: rgba(245,245,245,0.78);
}

.realm-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.realm-gallery-card {
  margin: 0;
  background: rgba(17,17,17,0.82);
  border: 1px solid rgba(201,164,74,0.18);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(0,0,0,0.28);
}

.realm-gallery-card a {
  display: block;
  aspect-ratio: 4 / 3;
  background: #070707;
  overflow: hidden;
}

.realm-gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.realm-gallery-card:hover img {
  transform: scale(1.04);
  opacity: 0.92;
}

.realm-gallery-card figcaption {
  min-height: 58px;
  padding: 0.75rem;
  color: var(--gold-light);
  font-size: 0.82rem;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.realm-download-card-featured {
  border-color: rgba(232, 200, 114, 0.5);
  background: linear-gradient(145deg, rgba(201,164,74,0.16), rgba(17,17,17,0.92));
}

.realm-featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}

.realm-featured-card {
  border-color: rgba(232, 200, 114, 0.35);
}

.realm-gallery-category {
  margin-top: 3rem;
}

.realm-gallery-category h3 {
  color: var(--gold-light);
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  text-align: center;
}

.realm-gallery-card figcaption strong,
.realm-gallery-card figcaption span {
  display: block;
}

.realm-gallery-card figcaption strong {
  color: var(--gold-light);
  margin-bottom: 0.3rem;
}

.realm-gallery-card figcaption span {
  color: rgba(245,245,245,0.72);
  font-size: 0.76rem;
}

.realm-signup-form {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.realm-signup-form label {
  display: grid;
  gap: 0.35rem;
  color: rgba(245,245,245,0.82);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.realm-signup-form input,
.realm-signup-form textarea {
  width: 100%;
  border: 1px solid rgba(201,164,74,0.28);
  border-radius: 10px;
  background: rgba(0,0,0,0.36);
  color: var(--white);
  padding: 0.85rem 0.95rem;
  font: inherit;
  text-transform: none;
  letter-spacing: 0;
}

.realm-signup-form input:focus,
.realm-signup-form textarea:focus {
  outline: 2px solid rgba(232,200,114,0.28);
  border-color: var(--gold-light);
}

.realm-form-notice {
  margin-top: 1rem;
  border: 1px solid rgba(125,211,252,0.35);
  background: rgba(125,211,252,0.1);
  border-radius: 12px;
  padding: 0.85rem;
  color: #bae6fd;
  font-weight: 700;
}

.realm-form-fineprint {
  color: rgba(245,245,245,0.6);
  font-size: 0.78rem;
  margin: 0;
}

/* Realm Gate hero refresh, July 2026: replaces the plain circular halo with a fantasy doorway. */
.realm-gate-hero {
  min-height: 82vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  text-align: left;
  padding: clamp(7rem, 10vw, 9rem) clamp(1.5rem, 6vw, 6rem) clamp(4rem, 7vw, 6rem);
  isolation: isolate;
  background:
    radial-gradient(circle at 82% 34%, rgba(112, 230, 163, 0.16), transparent 22%),
    radial-gradient(circle at 28% 52%, rgba(201, 164, 74, 0.14), transparent 24%);
}

.realm-gate-hero::before {
  width: min(24vw, 260px);
  height: min(24vw, 260px);
  left: 7%;
  bottom: 12%;
  background: radial-gradient(circle, rgba(112, 230, 163, 0.14), transparent 68%);
}

.realm-gate-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 0;
  filter: none;
  opacity: 0.42;
  background:
    linear-gradient(90deg, rgba(245, 245, 245, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(245, 245, 245, 0.025) 1px, transparent 1px);
  background-size: 86px 86px;
  mask-image: radial-gradient(circle at 72% 45%, black 0 44%, transparent 74%);
  z-index: -2;
}

.realm-gate-hero .realm-hero-content {
  max-width: min(100%, 720px);
  width: 100%;
}

.realm-gate-hero .realm-subtitle {
  margin-left: 0;
  margin-right: 0;
}

.realm-gate-hero .realm-cta-row {
  justify-content: flex-start;
}

.realm-portal-wrap {
  position: relative;
  min-height: clamp(500px, 54vw, 680px);
  display: grid;
  place-items: center;
  z-index: 1;
}

.realm-portal-glow {
  position: absolute;
  width: min(72vw, 520px);
  height: min(88vw, 640px);
  border-radius: 280px 280px 72px 72px;
  background: radial-gradient(ellipse at center, rgba(112, 230, 163, 0.32), rgba(91, 36, 108, 0.22) 42%, rgba(7, 7, 7, 0.1) 64%, transparent 78%);
  filter: blur(22px);
  opacity: 0.95;
}

.realm-portal-arch {
  position: absolute;
  width: min(68vw, 470px);
  height: min(86vw, 630px);
  border-radius: 250px 250px 58px 58px;
  border: 12px solid transparent;
  background:
    linear-gradient(#09060d, #09060d) padding-box,
    linear-gradient(145deg, #f6d77d, #765021 35%, #e7bf68 54%, #442a17 80%, #ffe8a8) border-box;
  box-shadow: 0 0 64px rgba(201, 164, 74, 0.28), inset 0 0 70px rgba(112, 230, 163, 0.13);
  overflow: hidden;
}

.realm-portal-arch::before {
  content: '';
  position: absolute;
  inset: 28px;
  border-radius: 220px 220px 40px 40px;
  background:
    radial-gradient(circle at 55% 35%, rgba(112, 230, 163, 0.34), transparent 19%),
    radial-gradient(circle at 42% 54%, rgba(232, 200, 114, 0.2), transparent 18%),
    linear-gradient(165deg, rgba(55, 19, 70, 0.74), rgba(11, 6, 16, 0.88) 38%, rgba(13, 38, 33, 0.72));
  border: 2px solid rgba(245, 245, 245, 0.3);
}

.realm-portal-arch::after {
  content: '';
  position: absolute;
  inset: 76px 62px 82px;
  border-radius: 200px 200px 30px 30px;
  background:
    linear-gradient(28deg, transparent 48%, rgba(245, 245, 245, 0.2) 49% 50%, transparent 51%),
    linear-gradient(118deg, transparent 48%, rgba(112, 230, 163, 0.22) 49% 50%, transparent 51%),
    radial-gradient(circle at 70% 18%, rgba(245, 245, 245, 0.45) 0 3px, transparent 4px),
    radial-gradient(circle at 28% 65%, rgba(245, 245, 245, 0.34) 0 3px, transparent 4px);
  opacity: 0.95;
}

.realm-portal-runes {
  position: absolute;
  inset: 24px;
  border-radius: 230px 230px 50px 50px;
  border: 1px dashed rgba(245, 245, 245, 0.28);
}

.realm-rune {
  position: absolute;
  color: var(--gold-light);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  text-shadow: 0 0 18px rgba(112, 230, 163, 0.6);
}

.realm-rune-one { left: 16%; top: 10%; }
.realm-rune-two { right: 15%; top: 13%; }
.realm-rune-three { left: 9%; bottom: 26%; }
.realm-rune-four { right: 10%; bottom: 24%; }

.realm-portal-crest {
  position: absolute;
  top: clamp(1.5rem, 5vw, 3.2rem);
  left: 50%;
  transform: translateX(-50%);
  width: clamp(66px, 8vw, 92px);
  height: clamp(66px, 8vw, 92px);
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(33, 18, 42, 0.94), rgba(9, 4, 13, 0.96));
  border: 3px solid var(--gold);
  box-shadow: 0 0 32px rgba(201, 164, 74, 0.38);
  color: var(--gold-light);
  font-size: clamp(2rem, 4vw, 3rem);
}

.realm-portal-griffon {
  position: absolute;
  top: 34%;
  color: rgba(245, 245, 245, 0.58);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(3.2rem, 6vw, 4.5rem);
  line-height: 1;
  text-shadow: 0 0 24px rgba(201, 164, 74, 0.35);
}

.realm-portal-griffon-left {
  left: clamp(0.5rem, 2.8vw, 1.5rem);
  transform: rotate(-16deg);
}

.realm-portal-griffon-right {
  right: clamp(0.5rem, 2.8vw, 1.5rem);
  transform: scaleX(-1) rotate(-16deg);
}

.realm-portal-book {
  position: absolute;
  right: clamp(2rem, 9vw, 5rem);
  bottom: clamp(0.5rem, 2vw, 2rem);
  width: clamp(150px, 18vw, 240px);
  height: auto;
  max-height: min(52vh, 360px);
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(232, 200, 114, 0.48);
  box-shadow: 0 28px 45px rgba(0, 0, 0, 0.72);
  transform: rotate(2deg);
}

@media (max-width: 900px) {
  .realm-gate-hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 7rem;
    overflow: hidden;
  }

  .realm-gate-hero h1 {
    font-size: clamp(3.25rem, 16vw, 4.6rem);
    max-width: 100%;
  }

  .realm-gate-hero .realm-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .realm-gate-hero .realm-cta-row {
    justify-content: center;
  }

  .realm-portal-wrap {
    min-height: 520px;
    width: 100%;
  }
}

@media (max-width: 560px) {
  .realm-portal-wrap {
    min-height: 410px;
  }

  .realm-portal-arch {
    width: min(86vw, 330px);
    height: min(112vw, 460px);
    border-width: 9px;
  }

  .realm-portal-book {
    width: 112px;
    right: 9%;
    bottom: 1.25rem;
    max-height: 172px;
  }

  .realm-portal-griffon {
    display: none;
  }
}

/* Mobile safety pass for the Realm Gate hero. */
html,
body,
.realm-page {
  overflow-x: hidden;
}

@media (max-width: 560px) {
  .realm-gate-hero {
    width: 100%;
    max-width: 100vw;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .realm-gate-hero .realm-hero-content,
  .realm-gate-hero .realm-subtitle,
  .realm-gate-hero .realm-cta-row {
    max-width: calc(100vw - 2rem);
  }

  .realm-gate-hero .realm-subtitle {
    font-size: 1rem;
    line-height: 1.55;
  }

  .realm-portal-wrap {
    overflow: hidden;
    max-width: calc(100vw - 2rem);
    margin-left: auto;
    margin-right: auto;
  }

  .realm-portal-glow,
  .realm-portal-arch {
    max-width: calc(100vw - 3rem);
  }

  .realm-portal-book {
    display: none;
  }
}

/* XTM section separation / standalone page polish, July 2026. */
body.home section:not(.hero),
.xtm-section-page > section:not(.xtm-section-page-hero) {
  position: relative;
  isolation: isolate;
  padding-top: clamp(6rem, 9vw, 8rem);
  padding-bottom: clamp(6rem, 9vw, 8rem);
  border-top: 1px solid rgba(201, 164, 74, 0.22);
  border-bottom: 1px solid rgba(0, 0, 0, 0.72);
}

body.home section:not(.hero)::before,
.xtm-section-page > section:not(.xtm-section-page-hero)::before {
  content: '';
  position: absolute;
  top: 0;
  left: clamp(1.25rem, 6vw, 6rem);
  right: clamp(1.25rem, 6vw, 6rem);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 200, 114, 0.72), transparent);
  pointer-events: none;
}

body.home .packs,
.xtm-section-page-packs .packs {
  background:
    radial-gradient(circle at 15% 10%, rgba(201, 164, 74, 0.08), transparent 26%),
    linear-gradient(180deg, #111111 0%, #0b0b0b 100%);
}

body.home .merch,
.xtm-section-page-merch .merch {
  background:
    radial-gradient(circle at 82% 12%, rgba(201, 164, 74, 0.07), transparent 24%),
    linear-gradient(180deg, #070707 0%, #020202 100%);
}

body.home .realm-teaser {
  margin: 0;
  background:
    radial-gradient(circle at 50% 30%, rgba(232, 200, 114, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(18, 12, 5, 0.98), rgba(7, 7, 7, 1));
}

body.home .preview-section,
.xtm-section-page-preview .preview-section {
  background:
    linear-gradient(180deg, #060606 0%, #0b0b0b 52%, #050505 100%);
}

body.home .music-pack-order {
  background:
    radial-gradient(circle at 50% 5%, rgba(201, 164, 74, 0.13), transparent 26%),
    linear-gradient(180deg, #120d06 0%, #0a0704 100%);
}

body.home .gallery,
.xtm-section-page-artists .gallery {
  background:
    linear-gradient(180deg, #111111 0%, #0b0b0b 100%);
}

body.home .about,
.xtm-section-page-about .about {
  background:
    radial-gradient(circle at 82% 20%, rgba(201, 164, 74, 0.08), transparent 28%),
    linear-gradient(180deg, #0d0d0d 0%, #090909 100%);
}

body.home .section-title,
body.home .preview-header,
body.home .music-pack-order-inner > .order-kicker,
body.home .gallery .section-title,
body.home .about-text h3,
.xtm-section-page .section-title,
.xtm-section-page .preview-header,
.xtm-section-page .about-text h3 {
  position: relative;
}

body.home .packs-grid,
body.home .merch-grid,
body.home .gallery-grid,
body.home .about-grid,
.xtm-section-page .packs-grid,
.xtm-section-page .merch-grid,
.xtm-section-page .gallery-grid,
.xtm-section-page .about-grid {
  background: rgba(255, 255, 255, 0.012);
  border: 1px solid rgba(201, 164, 74, 0.1);
  border-radius: 28px;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.28);
}

body.home .packs-grid,
.xtm-section-page .packs-grid,
body.home .merch-grid,
.xtm-section-page .merch-grid {
  align-items: stretch;
}

body.home .pack-card,
.xtm-section-page .pack-card,
body.home .merch-card,
.xtm-section-page .merch-card {
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.012)),
    var(--dark);
  display: flex;
  flex-direction: column;
}

body.home .pack-image,
.xtm-section-page .pack-image,
body.home .merch-image,
.xtm-section-page .merch-image {
  border-radius: 18px 18px 0 0;
}

body.home .pack-body,
.xtm-section-page .pack-body,
body.home .merch-body,
.xtm-section-page .merch-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

body.home .pack-features,
.xtm-section-page .pack-features,
body.home .merch-desc,
.xtm-section-page .merch-desc {
  flex: 1;
}

body.home .merch .section-title::after,
.xtm-section-page-merch .section-title::after {
  content: 'Official apparel only';
  display: block;
  margin-top: 0.75rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: rgba(232, 200, 114, 0.78);
}

body.home .preview-container,
.xtm-section-page-preview .preview-container,
body.home .music-pack-order-inner,
body.home .realm-teaser-inner,
.xtm-section-page .music-pack-order-inner {
  border-radius: 30px;
  border: 1px solid rgba(201, 164, 74, 0.16);
  background: rgba(9, 9, 9, 0.72);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
  padding: clamp(1.5rem, 4vw, 3rem);
}

body.home .preview-container {
  max-width: 980px;
}

body.home .beat-list {
  max-height: min(1180px, 72vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 18px;
  scrollbar-color: var(--gold) rgba(255,255,255,0.06);
  scrollbar-width: thin;
}

body.home .beat-list::after {
  content: 'Scroll for more beat previews';
  display: block;
  padding: 1rem;
  text-align: center;
  color: rgba(232, 200, 114, 0.76);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
  background: rgba(201, 164, 74, 0.08);
}

.xtm-section-page {
  background:
    radial-gradient(circle at top right, rgba(201, 164, 74, 0.12), transparent 28%),
    var(--black);
  min-height: 100vh;
}

.xtm-section-page-hero {
  min-height: 52vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(8rem, 12vw, 10rem) 2rem clamp(4rem, 7vw, 6rem);
  background:
    radial-gradient(circle at 50% 35%, rgba(201, 164, 74, 0.16), transparent 31%),
    linear-gradient(180deg, #070707 0%, #0c0c0c 100%);
  border-bottom: 1px solid rgba(201, 164, 74, 0.24);
}

.xtm-section-page-kicker {
  color: var(--gold-light);
  font-weight: 900;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.xtm-section-page-hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.8rem, 10vw, 8rem);
  letter-spacing: 0.07em;
  line-height: 0.9;
  color: var(--gold);
  margin: 0 0 1rem;
}

.xtm-section-page-hero p {
  max-width: 760px;
  color: rgba(245, 245, 245, 0.78);
  margin: 0 auto 1.6rem;
}

.xtm-section-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(201, 164, 74, 0.46);
  color: var(--gold-light);
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.xtm-section-page .realm-teaser,
.xtm-section-page .music-pack-order {
  margin: 0;
}

@media (max-width: 768px) {
  body.home section:not(.hero),
  .xtm-section-page > section:not(.xtm-section-page-hero) {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  body.home .packs-grid,
  body.home .merch-grid,
  body.home .gallery-grid,
  body.home .about-grid,
  .xtm-section-page .packs-grid,
  .xtm-section-page .merch-grid,
  .xtm-section-page .gallery-grid,
  .xtm-section-page .about-grid {
    border-radius: 20px;
    padding: 0.75rem;
  }

  body.home .preview-container,
  body.home .music-pack-order-inner,
  body.home .realm-teaser-inner,
  .xtm-section-page .preview-container,
  .xtm-section-page .music-pack-order-inner {
    border-radius: 22px;
    padding: 1.25rem;
  }

  body.home .beat-list {
    max-height: 980px;
  }
}

/* Mobile homepage hero safety: keep the brand headline and stats inside the viewport. */
.hero-mobile-break {
  display: none;
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 8rem 1rem 5rem;
    overflow: hidden;
  }

  .hero-content {
    width: 100%;
    max-width: calc(100vw - 2rem);
  }

  .hero-logo {
    width: 104px;
    height: 104px;
  }

  .hero h1 {
    max-width: calc(100vw - 2rem);
    font-size: clamp(4rem, 18vw, 5.4rem);
    letter-spacing: 0.08em;
    line-height: 0.9;
    margin-left: auto;
    margin-right: auto;
    overflow: visible;
  }

  .hero-mobile-break {
    display: inline;
  }

  .hero-sub {
    max-width: 100%;
    font-size: 0.92rem;
    letter-spacing: 0.28em;
    line-height: 1.7;
  }

  .hero-cta {
    width: min(100%, 320px);
    justify-content: center;
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }

  .hero-stats {
    width: 100%;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .stat-number {
    font-size: clamp(2.1rem, 10vw, 3rem);
  }

  .stat-label {
    font-size: 0.62rem;
    letter-spacing: 0.12em;
  }
}

/* Extra narrow viewport refinement for professional mobile screenshots. */
@media (max-width: 480px) {
  body,
  body.home,
  .hero,
  body.home section,
  .xtm-section-page,
  .xtm-section-page > section {
    max-width: 100vw;
  }

  .hero {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .hero-content {
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero h1 {
    font-size: clamp(3.6rem, 16vw, 4.45rem);
    letter-spacing: 0.045em;
  }

  .hero-sub {
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
  }

  .hero-cta {
    width: min(100%, 286px);
    font-size: 0.82rem;
    letter-spacing: 0.12em;
  }

  .hero-stats {
    max-width: 300px;
    gap: 0.4rem;
  }

  .stat-number {
    font-size: 2.35rem;
  }

  .stat-label {
    font-size: 0.55rem;
    letter-spacing: 0.08em;
  }

  .section-title,
  .preview-header h2,
  .music-pack-order h2,
  .xtm-section-page-hero h1 {
    max-width: calc(100vw - 2rem);
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(2.5rem, 12vw, 3.4rem);
    letter-spacing: 0.055em;
    line-height: 0.95;
    overflow-wrap: normal;
  }

  .section-sub,
  .preview-header p,
  .xtm-section-page-hero p {
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    line-height: 1.6;
  }
}

/* 390-600px compact layout, covers narrow desktop screenshots and phones. */
@media (max-width: 600px) {
  .hero-content {
    max-width: 300px;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 13vw, 4.1rem);
    letter-spacing: 0.035em;
  }

  .hero-sub {
    max-width: 260px;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
  }

  .hero-cta {
    width: min(100%, 270px);
  }

  .hero-stats {
    grid-template-columns: 1fr;
    max-width: 210px;
    gap: 1.1rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .stat-label {
    font-size: 0.62rem;
  }

  .section-title,
  .preview-header h2,
  .music-pack-order h2,
  .xtm-section-page-hero h1 {
    font-size: clamp(2.15rem, 9vw, 2.75rem);
    letter-spacing: 0.025em;
    max-width: 300px;
  }

  .section-sub,
  .preview-header p,
  .xtm-section-page-hero p {
    max-width: 270px;
    font-size: 0.72rem;
    letter-spacing: 0.09em;
  }
}

/* XTM Music Videos and social hub. */
.music-videos,
.xtm-section-page-videos .music-videos {
  background:
    radial-gradient(circle at 18% 12%, rgba(201, 164, 74, 0.12), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(138, 43, 226, 0.13), transparent 24%),
    linear-gradient(180deg, #080808 0%, #101010 48%, #050505 100%);
}

.music-videos-shell {
  width: min(1180px, calc(100vw - 2rem));
  margin: 0 auto;
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.4rem);
}

.music-videos-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.videos-kicker {
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.music-videos h2,
.music-videos h3 {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.07em;
}

.music-videos h2 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  color: var(--gold);
  line-height: 0.9;
  margin-bottom: 1rem;
}

.music-videos-header p,
.featured-video-copy p,
.social-hub-panel p,
.posting-workflow-card p,
.video-mini-card p {
  color: rgba(245, 245, 245, 0.78);
}

.featured-video-card,
.social-hub-panel,
.posting-workflow-card {
  border: 1px solid rgba(201, 164, 74, 0.18);
  border-radius: 30px;
  background: rgba(10, 10, 10, 0.74);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.36);
}

.featured-video-card {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  padding: clamp(1rem, 2.5vw, 1.5rem);
  align-items: center;
}

.video-frame,
.video-mini-card iframe {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(201, 164, 74, 0.22);
  background: #000;
}

.video-frame iframe,
.video-mini-card iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.featured-video-copy {
  padding: clamp(0.5rem, 2vw, 1rem);
}

.featured-video-copy span,
.video-channel-inner span {
  display: inline-flex;
  color: var(--black);
  background: var(--gold);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.featured-video-copy h3,
.social-hub-panel h3,
.posting-workflow-card h3,
.video-mini-card h3 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.95;
  margin-bottom: 0.8rem;
}

.video-actions,
.xtm-social-grid,
.footer-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.video-actions a,
.video-channel-inner a,
.xtm-social-card,
.footer-social-link {
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid rgba(201, 164, 74, 0.42);
  color: var(--gold-light);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
}

.video-actions a,
.video-channel-inner a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1rem;
  font-size: 0.76rem;
}

.video-actions a:first-child,
.video-channel-inner a:hover,
.video-actions a:hover,
.xtm-social-card:hover,
.footer-social-link:hover {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
  transform: translateY(-2px);
}

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

.video-mini-card {
  border: 1px solid rgba(201, 164, 74, 0.16);
  border-radius: 24px;
  overflow: hidden;
  background: rgba(10, 10, 10, 0.72);
  padding: 1rem;
}

.video-mini-card h3 {
  font-size: 2rem;
  margin-top: 1rem;
}

.video-channel-card {
  display: grid;
  min-height: 100%;
}

.video-channel-inner {
  min-height: 100%;
  display: grid;
  align-content: center;
  justify-items: start;
  border-radius: 18px;
  background:
    radial-gradient(circle at 30% 30%, rgba(201, 164, 74, 0.18), transparent 42%),
    rgba(255, 255, 255, 0.035);
  padding: clamp(1.2rem, 3vw, 2rem);
}

.social-hub-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  gap: 1.5rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  align-items: center;
}

.xtm-social-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.xtm-social-card {
  display: grid;
  gap: 0.35rem;
  align-content: center;
  min-height: 118px;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.xtm-social-card span {
  color: var(--gold-light);
  font-size: 0.74rem;
}

.xtm-social-card strong {
  color: var(--white);
  font-size: 0.82rem;
  line-height: 1.35;
  text-transform: none;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.posting-workflow-card {
  padding: clamp(1.25rem, 3vw, 2rem);
  text-align: center;
}

.posting-workflow-card p {
  max-width: 860px;
  margin: 0 auto;
}

.footer-social-links {
  justify-content: center;
  margin: 1.4rem auto 1.2rem;
}

.footer-social-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.9rem;
  font-size: 0.72rem;
}

@media (max-width: 1120px) {
  .nav-links {
    gap: 1.35rem;
  }

  .nav-links a {
    font-size: 0.78rem;
  }

  .xtm-social-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .featured-video-card,
  .social-hub-panel,
  .video-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .music-videos-shell {
    width: min(100%, calc(100vw - 1.5rem));
  }

  .music-videos h2 {
    font-size: clamp(2.6rem, 13vw, 3.6rem);
    letter-spacing: 0.04em;
  }

  .xtm-social-grid {
    grid-template-columns: 1fr;
  }

  .featured-video-card,
  .social-hub-panel,
  .posting-workflow-card {
    border-radius: 22px;
  }
}

/* Mobile video page heading safety. */
@media (max-width: 600px) {
  .music-videos-header {
    max-width: 320px;
    overflow: hidden;
  }

  .music-videos h2 {
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(2.35rem, 10.5vw, 3rem);
    letter-spacing: 0.018em;
    line-height: 0.98;
    overflow-wrap: normal;
  }

  .music-videos-header p {
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }

  .featured-video-card,
  .video-mini-card,
  .social-hub-panel,
  .posting-workflow-card {
    max-width: 100%;
    overflow: hidden;
  }
}

/* Launch-safe WooCommerce mobile layout. */
@media (max-width: 600px) {
  .xtm-woocommerce {
    width: 100%;
    max-width: 100%;
    padding: 7rem 1rem 3rem;
    box-sizing: border-box;
    overflow: hidden;
  }

  .woocommerce .woocommerce-result-count,
  .woocommerce .woocommerce-ordering {
    float: none;
    width: 100%;
    margin: 0 0 1rem;
  }

  .woocommerce .woocommerce-ordering select {
    width: 100%;
    min-height: 40px;
  }

  .woocommerce ul.products,
  .woocommerce-page ul.products,
  .woocommerce ul.products[class*="columns-"] {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 0.75rem;
    width: 100% !important;
    margin: 0 !important;
  }

  .woocommerce ul.products::before,
  .woocommerce ul.products::after,
  .woocommerce-page ul.products::before,
  .woocommerce-page ul.products::after {
    display: none !important;
    content: none !important;
  }

  .woocommerce ul.products li.product,
  .woocommerce-page ul.products li.product,
  .woocommerce ul.products[class*="columns-"] li.product {
    float: none !important;
    clear: none !important;
    width: 100% !important;
    min-width: 0;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
  }

  .woocommerce ul.products li.product .woocommerce-loop-product__title {
    min-height: 3.15rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    overflow-wrap: anywhere;
  }

  .woocommerce ul.products li.product .price {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .woocommerce ul.products li.product .button {
    width: 100%;
    margin-top: auto;
    padding: 0.85rem 0.45rem;
    box-sizing: border-box;
    white-space: normal;
    line-height: 1.05;
    text-align: center;
  }

  .woocommerce div.product,
  .woocommerce-cart-form,
  .woocommerce-checkout,
  .woocommerce-order {
    width: 100%;
    padding: 1rem;
    box-sizing: border-box;
    overflow: hidden;
  }

  .woocommerce div.product div.images,
  .woocommerce div.product div.summary,
  .woocommerce div.product .woocommerce-tabs,
  .woocommerce div.product .related.products {
    float: none !important;
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
  }

  .woocommerce div.product div.images {
    padding: 1rem;
  }

  .woocommerce div.product form.cart .variations,
  .woocommerce div.product form.cart .variations tbody,
  .woocommerce div.product form.cart .variations tr,
  .woocommerce div.product form.cart .variations th,
  .woocommerce div.product form.cart .variations td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .woocommerce div.product form.cart .variations th,
  .woocommerce div.product form.cart .variations td {
    padding: 0 0 0.45rem;
  }

  .woocommerce div.product form.cart .variations select {
    width: 100%;
  }

  .woocommerce div.product .woocommerce-tabs ul.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0;
  }

  .woocommerce div.product .woocommerce-tabs ul.tabs li {
    margin: 0;
  }

  .woocommerce div.product .woocommerce-tabs ul.tabs li a {
    padding: 0.75rem;
    white-space: normal;
  }

  .woocommerce div.product .related.products {
    padding: 3rem 0 0 !important;
  }

  .woocommerce div.product .related.products ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .woocommerce div.product .related.products h2 {
    overflow-wrap: anywhere;
  }
}

