/* ============================================================
   IVY MUSIC — Genre Sub-Page Shared CSS
   ============================================================ */

/* ── BASE ── */
.genre-page {
  background: #FAF8F4;
  color: #111;
  cursor: none;
  overflow-x: hidden;
}
.genre-page::-webkit-scrollbar { width: 3px; }
.genre-page::-webkit-scrollbar-thumb { background: var(--gc, var(--gold)); border-radius: 3px; }

/* ── CURSOR ── */
.genre-page #cursor-dot {
  position: fixed; top: 0; left: 0;
  width: 5px; height: 5px;
  background: #111; border-radius: 50%;
  pointer-events: none; z-index: 99999;
  transform: translate(-50%,-50%);
  will-change: left, top;
}
.genre-page #cursor-ring {
  position: fixed; top: 0; left: 0;
  width: 32px; height: 32px;
  border: 1.5px solid rgba(154,122,47,.4);
  border-radius: 50%; pointer-events: none;
  z-index: 99998; transform: translate(-50%,-50%);
  transition: width .25s, height .25s, border-color .25s;
  will-change: left, top;
}
.genre-page #cursor-ring.hovering {
  width: 46px; height: 46px;
  border-color: var(--gc, rgba(154,122,47,.7));
}

/* ── NAVBAR ── */
.genre-nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 900; height: 68px;
  display: flex; align-items: center;
  background: rgba(250,248,244,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,.08);
  transition: box-shadow .3s;
}
.genre-nav.elevated { box-shadow: 0 4px 32px rgba(0,0,0,.08); }
.genre-nav .nav-logo-img { filter: none; height: 34px; }
.genre-nav .nav-link { color: rgba(0,0,0,.45); font-size: 13px; font-weight: 500; }
.genre-nav .nav-link::after { background: var(--gc, var(--gold)); }
.genre-nav .nav-link:hover,
.genre-nav .nav-link.active { color: #0A0A0A; }
.genre-nav .nav-link.nav-cta {
  background: var(--gold-dark); color: #fff !important;
  padding: 8px 20px; border-radius: 100px; font-weight: 700;
  transition: background .25s, transform .25s;
}
.genre-nav .nav-link.nav-cta:hover { background: #7a5d20; transform: translateY(-1px); }
.genre-nav .nav-link.nav-cta::after { display: none; }
.genre-nav .nav-toggle span { background: #0A0A0A; }

/* ── REVEAL ── */
.gp-reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
}
.gp-reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   GENRE HERO
   ============================================================ */
.gp-hero {
  position: relative;
  background: #0F0D0A;
  margin-top: var(--hdr-h, 130px);
  padding: 48px 0 64px;
  overflow: hidden;
}
.gp-hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 90% at 90% 50%, var(--gc-faint, rgba(201,168,76,.08)) 0%, transparent 70%);
}
.gp-hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, transparent 0%, black 30%, black 70%, transparent 100%);
}
.gp-hero::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; right: 0; height: 80px;
  background: linear-gradient(to bottom, transparent, #FAF8F4);
  z-index: 2; pointer-events: none;
}
.gp-hero-inner {
  position: relative; z-index: 3;
  display: flex; align-items: center; gap: 48px;
}
.gp-hero-left { flex: 1; }

.gp-breadcrumb {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: rgba(255,255,255,.3);
  margin-bottom: 20px; text-decoration: none;
  transition: color .2s;
}
.gp-breadcrumb:hover { color: rgba(255,255,255,.6); }
.gp-breadcrumb i { font-size: 9px; }

.gp-hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 10px; font-weight: 700; letter-spacing: 3.5px;
  text-transform: uppercase; color: var(--gc, var(--gold));
  margin-bottom: 18px;
}
.gp-hero-tag span {
  display: inline-block; width: 7px; height: 7px;
  border-radius: 50%; background: var(--gc, var(--gold));
}

.gp-hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 900; line-height: .9;
  letter-spacing: -3px; color: #fff;
  margin-bottom: 20px;
}
.gp-hero-title em { color: var(--gc, var(--gold)); font-style: italic; display: block; }

.gp-hero-sub {
  font-size: 15px; color: rgba(255,255,255,.36);
  line-height: 1.8; max-width: 480px; margin-bottom: 36px;
}
.gp-hero-meta {
  display: flex; align-items: center; gap: 0;
}
.gp-hero-stat { display: flex; flex-direction: column; padding-right: 28px; }
.gp-hero-stat strong {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 24px; font-weight: 900;
  color: #fff; letter-spacing: -.5px; line-height: 1;
}
.gp-hero-stat span {
  font-size: 9.5px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: rgba(255,255,255,.25); margin-top: 4px;
}
.gp-hero-sep { width: 1px; height: 32px; background: rgba(255,255,255,.1); margin-right: 28px; }

/* Right: top video preview in hero */
.gp-hero-right {
  flex-shrink: 0; width: 380px;
  position: relative;
}
.gp-hero-top-vid {
  border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
  transition: transform .5s cubic-bezier(.16,1,.3,1), box-shadow .5s;
  display: block; text-decoration: none;
  position: relative;
}
.gp-hero-top-vid:hover { transform: translateY(-6px); box-shadow: 0 36px 80px rgba(0,0,0,.6); }
.gp-top-thumb {
  position: relative; aspect-ratio: 16/9;
  overflow: hidden; background: #111;
}
.gp-top-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  display: block; transition: transform .6s cubic-bezier(.16,1,.3,1);
}
.gp-hero-top-vid:hover .gp-top-thumb img { transform: scale(1.05); }
.gp-top-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.22); opacity: 0; transition: opacity .25s;
}
.gp-hero-top-vid:hover .gp-top-play { opacity: 1; }
.gp-top-play i { font-size: 40px; color: #fff; filter: drop-shadow(0 2px 12px rgba(0,0,0,.5)); }
.gp-top-info {
  padding: 16px 20px 20px;
  background: #161616;
}
.gp-top-label {
  font-size: 9px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--gc, var(--gold));
  margin-bottom: 6px; display: block;
}
.gp-top-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 17px; font-weight: 900; color: #fff;
  letter-spacing: -.3px; margin-bottom: 4px;
}
.gp-top-artist { font-size: 12px; color: rgba(255,255,255,.38); margin-bottom: 12px; }
.gp-top-views {
  font-size: 11px; font-weight: 700; color: rgba(255,255,255,.5);
  display: flex; align-items: center; gap: 6px;
}
.gp-top-views i { color: var(--gc, var(--gold)); font-size: 10px; }
.gp-top-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--gc, var(--gold));
  color: #fff; font-family: 'Playfair Display', Georgia, serif;
  font-size: 11px; font-weight: 900;
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,.3);
}

/* ============================================================
   SONGS GRID
   ============================================================ */
.gp-main { padding: 48px 0 80px; background: #FAF8F4; }

.gp-section-head {
  display: flex; align-items: flex-end;
  justify-content: space-between; gap: 16px;
  margin-bottom: 28px; padding-bottom: 18px;
  border-bottom: 1px solid rgba(0,0,0,.07);
}
.gp-section-eye {
  font-size: 9px; font-weight: 800; letter-spacing: 3px;
  text-transform: uppercase; color: var(--gc, var(--gold-dark));
  margin-bottom: 6px;
}
.gp-section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(22px, 2.8vw, 32px); font-weight: 700;
  color: #0A0A0A; letter-spacing: -.5px;
}
.gp-section-title em { color: var(--gc, var(--gold-dark)); font-style: italic; }
.gp-section-count { font-size: 12px; font-weight: 600; color: #bbb; }

/* Song cards grid */
.gp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* Card */
.gp-card {
  display: flex; flex-direction: column;
  background: #FFFFFF;
  border-radius: 16px; overflow: hidden;
  text-decoration: none; color: inherit;
  border: 1px solid rgba(0,0,0,.07);
  transition: box-shadow .35s cubic-bezier(.16,1,.3,1),
              transform .35s cubic-bezier(.16,1,.3,1);
  position: relative;
}
.gp-card:hover {
  box-shadow: 0 14px 44px rgba(0,0,0,.10);
  transform: translateY(-4px);
}

/* Rank bar at top */
.gp-card-bar {
  height: 4px;
  background: var(--gc, var(--gold));
}

/* Thumbnail */
.gp-card-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden; background: #111;
}
.gp-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .55s cubic-bezier(.16,1,.3,1);
}
.gp-card:hover .gp-card-thumb img { transform: scale(1.06); }
.gp-card-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.28); opacity: 0; transition: opacity .25s;
}
.gp-card:hover .gp-card-play { opacity: 1; }
.gp-card-play i { font-size: 30px; color: #fff; filter: drop-shadow(0 2px 8px rgba(0,0,0,.4)); }
.gp-card-rank {
  position: absolute; top: 10px; left: 10px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 11px; font-weight: 900;
  background: rgba(255,255,255,.93);
  color: #0A0A0A; padding: 3px 9px;
  border-radius: 100px; backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.gp-card-yt-icon {
  position: absolute; bottom: 10px; right: 10px;
  font-size: 22px; color: #fff;
  opacity: 0; transition: opacity .25s;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.5));
}
.gp-card:hover .gp-card-yt-icon { opacity: 1; }

/* Body */
.gp-card-body {
  padding: 14px 16px 18px;
  display: flex; flex-direction: column; flex: 1;
}
.gp-card-label-tag {
  font-size: 9px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: #bbb; margin-bottom: 6px;
}
.gp-card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 15.5px; font-weight: 700; color: #0A0A0A;
  line-height: 1.25; margin-bottom: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.gp-card-artist {
  font-size: 12px; color: #999; flex: 1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gp-card-foot {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-top: 12px; padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,.05);
}
.gp-card-views {
  display: flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 700; color: #555;
}
.gp-card-views i { font-size: 10px; color: var(--gc, #bbb); }
.gp-card-yt { font-size: 14px; color: #FF0000; opacity: .6; transition: opacity .2s; }
.gp-card:hover .gp-card-yt { opacity: 1; }

/* Back CTA */
.gp-back-cta {
  display: flex; justify-content: center;
  gap: 16px; padding-top: 16px; margin-top: 20px;
  flex-wrap: wrap;
}
.gp-back-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 32px; border-radius: 100px;
  font-size: 13px; font-weight: 700; letter-spacing: .3px;
  text-decoration: none; cursor: none;
  transition: all .3s cubic-bezier(.16,1,.3,1);
}
.gp-back-btn.dark {
  background: #1A1410; color: #fff; border: 1.5px solid #1A1410;
}
.gp-back-btn.dark:hover { background: #2a2018; transform: translateY(-2px); box-shadow: 0 10px 32px rgba(0,0,0,.15); }
.gp-back-btn.outline {
  background: transparent; color: #555; border: 1.5px solid rgba(0,0,0,.12);
}
.gp-back-btn.outline:hover { border-color: rgba(0,0,0,.25); color: #111; transform: translateY(-2px); }
.gp-back-btn i { font-size: 12px; }

/* ============================================================
   STATS STRIP (shared with songs.css)
   ============================================================ */

/* ============================================================
   FOOTER OVERRIDE
   ============================================================ */
.genre-footer { background: #1A1410; }
.genre-footer .footer-logo-img { filter: none; }
.genre-footer .footer-tagline,
.genre-footer .footer-company,
.genre-footer .footer-address { color: rgba(255,255,255,.45); }
.genre-footer .footer-col h5 { color: var(--gc, var(--gold, #C9A84C)); }
.genre-footer .footer-col a { color: rgba(255,255,255,.55); }
.genre-footer .footer-col a:hover { color: #fff; }
.genre-footer .footer-bottom { border-top-color: rgba(255,255,255,.06); }
.genre-footer .footer-bottom p { color: rgba(255,255,255,.35); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .gp-hero-inner { flex-direction: column; align-items: flex-start; }
  .gp-hero-right { width: 100%; max-width: 480px; }
  .gp-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .genre-page { cursor: auto; }
  #cursor-dot, #cursor-ring { display: none; }
  .gp-back-btn { cursor: pointer; }
  .gp-hero-title { letter-spacing: -2px; }
  .gp-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .gp-hero-meta { flex-wrap: wrap; gap: 16px; }
}
@media (max-width: 480px) {
  .gp-grid { grid-template-columns: 1fr; }
  .gp-hero { padding: 100px 0 48px; }
}
