/* =======================================================
   COMPARTIR RANKINGS GLOBAL THEME - PUBLICO MOBILE REAL-LIVE
   ======================================================= */
:root {
  --theme-bg: linear-gradient(135deg, #1a0f00 0%, #994407 60%, #1a0f00 100%);
  --theme-text: #ffffff;
  --secondary-bar-height: 70px;
  --font-primary: "Poppins", Arial, sans-serif;
  --rankings-mobile-width: min(94vw, 520px);
  --rankings-orange: #ff8c00;
  --rankings-brown: #220b01;
  --rankings-black: #070300;
  --rankings-genre-container-bg: linear-gradient(180deg, rgba(28, 9, 0, 0.92) 0%, rgba(0, 0, 0, 0.82) 100%);
  --rankings-artist-card-color: rgba(207, 94, 14, 0.95);
}

/* =======================================================
   BASE DEL BODY - COMPARTIR RANKINGS MOBILE REAL-LIVE
   ======================================================= */
html {
  background: #1a0f00;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  padding-top: var(--secondary-bar-height);
  background:
    radial-gradient(circle at top, rgba(255, 124, 17, 0.18), transparent 34%),
    linear-gradient(135deg, #1a0f00 0%, #471e01 58%, #0a0300 100%);
  color: var(--theme-text);
  font-family: var(--font-primary);
  overflow-x: hidden;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

button {
  font-family: inherit;
}

img {
  max-width: 100%;
}

/* =======================================================
   MAIN HEADER - IGUAL COMPARTIR MOBILE REAL-LIVE
   ======================================================= */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  min-height: var(--secondary-bar-height);
  background: var(--theme-bg);
  color: var(--theme-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  z-index: 1000;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.42);
}

.header-logo {
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  color: #fff;
  font-size: clamp(1rem, 4vw, 1.35rem);
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.header-logo:hover {
  transform: scale(1.03);
  opacity: 0.88;
}

.logo-circle {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: url("logo.png") center/cover no-repeat;
  border: 2px solid #f8f5f3;
}

.logo-text {
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.home-controls {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
}

.direction-btn {
  width: 36px;
  height: 36px;
  border: 2px solid #ffffff;
  border-radius: 10px;
  background: #220b01;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.direction-btn .arrow-icon {
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 13px solid #fff;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.4));
  transition: transform 0.25s ease;
}

.direction-btn.down .arrow-icon {
  transform: rotate(180deg);
}

.direction-btn:hover {
  background-color: #f70b0b;
  transform: scale(1.05);
}

.lang-selector {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 7px 11px;
  border: 2px solid #fff;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.25s ease;
}

.lang-selector:hover {
  background: #fff;
  color: #000;
}

/* =======================================================
   COMPARTIR SONG - TITULO SECCION HEADER MINI CARD REAL-LIVE
   ======================================================= */
.compartir-section-title-card {
  position: absolute;
  right: 12px;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  min-width: 118px;
  padding: 7px 18px;
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  background: var(--rankings-genre-container-bg);
  border: 2px solid rgba(255, 255, 255, 0.92);
  color: #fff;
  font-size: 0.94rem;
  font-style: oblique 10deg;
  font-weight: 1000;
  letter-spacing: 0;
  line-height: 1.02;
  text-align: center;
  text-shadow:
    0.45px 0 0 #fff,
    -0.45px 0 0 #fff,
    0 0.45px 0 #fff,
    0 -0.45px 0 #fff;
  text-transform: uppercase;
  white-space: nowrap;
}

.compartir-section-title-card.is-two-line {
  flex-direction: column;
  min-height: 42px;
  min-width: 122px;
  padding: 5px 18px;
  white-space: normal;
}

/* =======================================================
   MAIN COMPARTIR RANKINGS - LAYOUT VERTICAL MOBILE
   ======================================================= */
.rankings-share-main {
  width: 100%;
  min-height: calc(100vh - var(--secondary-bar-height));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 14px 0 10px;
}

/* =======================================================
   BARRA SECUNDARIA RANKINGS - VERSION MOBILE REAL-LIVE
   ======================================================= */
.secondary-bar {
  width: 100%;
  background: linear-gradient(180deg, rgba(97, 13, 2, 0.92) 0%, rgba(11, 11, 11, 0.86) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  position: relative;
  z-index: 9;
  border-bottom: 1px solid rgba(255, 140, 0, 0.16);
  backdrop-filter: blur(6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.secondary-bar .container {
  width: var(--rankings-mobile-width);
  padding: 10px 0;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sb-group {
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 10px;
}

.language-selector {
  width: fit-content;
  max-width: 100%;
  min-height: auto;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 25px;
  background: rgba(207, 94, 14, 0.68);
  box-shadow: 0 3px 8px rgba(255, 107, 0, 0.28);
  color: #fff;
  font-size: 0.92rem;
  line-height: 1.12;
  font-weight: 900;
  padding: 8px 18px 5px;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  cursor: pointer;
  transition: all 0.25s ease;
}

.language-selector:hover {
  background: rgba(255, 106, 0, 0.96);
  color: #fff;
  transform: translateY(-1px);
}

.ranking-current-label {
  min-height: auto;
  background: rgba(207, 94, 14, 0.68);
  border-color: rgba(255, 255, 255, 0.35);
  cursor: default;
}

.ranking-current-label:hover {
  transform: none;
}

.secondary-bar .language-selector.year-btn {
  background: rgba(40, 40, 40, 0.66);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  font-size: 0.88rem;
  padding: 7px 16px 5px;
}

.secondary-bar .language-selector.year-btn:hover,
.secondary-bar .language-selector.year-btn.is-active {
  background: rgba(255, 106, 0, 0.98);
  border-color: rgba(255, 255, 255, 0.72);
}

.secondary-bar .language-selector.year-btn.is-active {
  display: none;
}

/* =======================================================
   TERCERA BARRA RANKINGS - ACCESOS POR GENERO 2026 REAL-LIVE
   ======================================================= */
.genre-jump-bar[hidden] {
  display: none;
}

.genre-jump-bar {
  width: var(--rankings-mobile-width);
  margin-top: 0;
  padding: 11px 0;
  border-radius: 18px;
  background: var(--rankings-genre-container-bg);
  border-top: 1px solid rgba(255, 140, 0, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.24);
}

.genre-jump-track {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 0;
  padding: 2px 16px;
  overflow: hidden;
}

.genre-jump-dot {
  --genre-color: rgba(207, 94, 14, 0.9);
  width: clamp(21px, 6vw, 30px);
  max-width: 30px;
  min-width: 0;
  aspect-ratio: 1 / 1;
  flex: 0 0 clamp(21px, 6vw, 30px);
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  background: var(--genre-color);
  box-shadow:
    inset 0 0 8px rgba(255, 255, 255, 0.18),
    0 0 9px rgba(0, 0, 0, 0.46);
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.genre-jump-dot:hover,
.genre-jump-dot:focus-visible {
  border-color: #ffffff;
  box-shadow:
    inset 0 0 8px rgba(255, 255, 255, 0.22),
    0 0 13px rgba(255, 140, 0, 0.52);
  transform: translateY(-1px) scale(1.05);
  outline: none;
}

.genre-jump-dot:active {
  transform: scale(0.92);
}

/* =======================================================
   RANKINGS MOBILE - CONTENEDOR PRINCIPAL REAL-LIVE
   ======================================================= */
.ranking-mobile-section {
  width: var(--rankings-mobile-width);
  margin: 0 auto;
}

.ranking-genres-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.ranking-loading {
  width: 100%;
  border-radius: 16px;
  border: 2px solid rgba(255, 140, 0, 0.38);
  background: rgba(20, 6, 0, 0.82);
  color: rgba(255, 255, 255, 0.86);
  padding: 18px;
  font-size: 0.96rem;
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.34);
}

.ranking-loading p {
  margin: 0;
}

/* =======================================================
   RANKING GENRE CARD - PLAYLIST MOBILE REAL-LIVE
   ======================================================= */
.ranking-genre {
  position: relative;
  width: 100%;
  padding: 14px;
  border-radius: 18px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.48);
}

.ranking-genre::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 18px;
  z-index: 1;
}

.ranking-genre:active {
  transform: scale(1.01);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* =======================================================
   COMPARTIR RANKINGS - BOTON SUPERIOR GENERO MOBILE REAL-LIVE
   ======================================================= */
.ranking-share-button {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 6;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 11px;
  background: rgba(34, 11, 1, 0.92);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 7px 16px rgba(0, 0, 0, 0.42);
  transition: transform 0.18s ease, background 0.18s ease;
}

.ranking-share-button:hover,
.ranking-share-button:focus-visible {
  background: #f70b0b;
  transform: translateY(-1px) scale(1.04);
  outline: none;
}

.ranking-share-button:active {
  transform: scale(0.94);
}

.ranking-genre .genre-header {
  padding-right: 44px;
}

.ranking-share-icon {
  position: relative;
  width: 23px;
  height: 24px;
  display: block;
}

.ranking-share-arrow {
  position: absolute;
  left: 50%;
  top: 1px;
  width: 2px;
  height: 16px;
  background: #fff;
  border-radius: 999px;
  transform: translateX(-50%);
}

.ranking-share-arrow::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 9px;
  height: 9px;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  transform: translate(-50%, 0) rotate(45deg);
  transform-origin: center;
}

.ranking-share-box {
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 18px;
  height: 14px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  border-left: 2px solid #fff;
  border-radius: 2px;
  transform: translateX(-50%);
}

.ranking-share-box::before,
.ranking-share-box::after {
  content: "";
  position: absolute;
  top: 0;
  width: 5px;
  height: 2px;
  background: #fff;
}

.ranking-share-box::before {
  left: -2px;
}

.ranking-share-box::after {
  right: -2px;
}

/* =======================================================
   COMPARTIR RANKINGS - MENU ACCIONES GENERO MOBILE REAL-LIVE
   ======================================================= */
.ranking-share-menu[hidden] {
  display: none;
}

.ranking-share-menu {
  position: absolute;
  top: 52px;
  right: 10px;
  z-index: 7;
  width: min(292px, calc(100% - 20px));
  padding: 12px;
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 140, 0, 0.24), transparent 32%),
    linear-gradient(180deg, #321000 0%, #0d0400 58%, #000000 100%);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.58);
}

/* =======================================================
   COMPARTIR SONG - MENU PRINCIPAL CENTRADO SOLO EN GENERO MOBILE REAL-LIVE
   ======================================================= */
.ranking-genre > .ranking-share-menu {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
}

/* =======================================================
   COMPARTIR SONG - PANEL NUMERICO SEPARADO MOBILE REAL-LIVE
   ======================================================= */
.ranking-top-individual-position-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 99998;
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: min(218px, calc(100vw - 58px));
  box-sizing: border-box;
  transform: translate(-50%, -50%);
  padding: 9px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-radius: 13px;
  background: rgba(0, 0, 0, 0.72);
}

.ranking-top-individual-position-input {
  width: 100%;
  min-height: 50px;
  box-sizing: border-box;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  background: #000;
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
  font-weight: 1000;
  text-align: center;
  appearance: none;
}

.ranking-top-individual-position-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ranking-top-individual-position-btn {
  min-height: 48px;
  padding: 8px 6px;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 11px;
  background: linear-gradient(180deg, #220b01, #000);
  color: #fff;
  font-size: 0.92rem;
  line-height: 1.05;
  font-weight: 1000;
  cursor: pointer;
}

.ranking-top-individual-position-btn.is-confirm {
  background: linear-gradient(180deg, #ff7c11, #7c2100);
}

.ranking-top-individual-position-btn:active {
  transform: scale(0.97);
}

.ranking-share-action-stack {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.ranking-share-action-btn {
  width: 100%;
  min-height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 13px;
  background: linear-gradient(180deg, #220b01, #000000);
  color: #fff;
  font-size: 0.88rem;
  line-height: 1.15;
  font-weight: 1000;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, opacity 0.16s ease;
}

.ranking-share-action-btn.is-primary {
  background: linear-gradient(180deg, #ff7c11, #7c2100);
}

.ranking-share-action-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(90deg, #f70b0b, #5a0000);
}

.ranking-share-action-btn:disabled {
  opacity: 0.58;
  cursor: wait;
  transform: none;
}

.ranking-share-feedback {
  min-height: 18px;
  margin-top: 10px;
  color: #ffddad;
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
}

/* =======================================================
   RANKING GENRE CARD - COLOR TERCERA BARRA MOBILE REAL-LIVE
   ======================================================= */
.ranking-genre {
  --ranking-artist-card-color: var(--rankings-artist-card-color);
  background: var(--rankings-genre-container-bg) !important;
}

.ranking-genre::before {
  background: transparent;
}

.genre-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  text-align: left;
  pointer-events: none;
}

.genre-header .genre-cover,
.genre-header .genre-name,
.genre-header small,
.genre-header div:last-child {
  pointer-events: auto;
  will-change: transform, filter;
  transition: transform 0.09s ease-out, filter 0.09s ease-out;
}

.genre-header .genre-cover:hover,
.genre-header .genre-name:hover,
.genre-header small:hover,
.genre-header div:last-child:hover {
  transform: scale(1.01);
  filter: brightness(1.04);
}

.genre-header > div {
  min-width: 0;
}

.genre-cover {
  width: 78px;
  height: 78px;
  flex: 0 0 78px;
  border-radius: 12px;
  border: 2px solid #fff;
  object-fit: cover;
  display: block;
  background-color: rgba(255, 255, 255, 0.05);
}

.genre-name {
  max-width: 100%;
  margin: 0 0 5px;
  color: #fff;
  font-size: 0.98rem;
  line-height: 1.08;
  font-weight: 900;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.genre-name a {
  color: #fff;
  text-decoration: none;
}

.genre-name a:hover {
  text-decoration: underline;
}

.genre-header small {
  display: block;
  max-width: 100%;
  font-size: 0.72rem;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.genre-header span {
  line-height: 1.18;
  overflow-wrap: anywhere;
}

/* =======================================================
   ARTISTAS RANKING - GRID MOBILE REAL-LIVE
   ======================================================= */
.artist-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.artist-card {
  position: relative;
  min-width: 0;
  min-height: 142px;
  padding: 26px 8px 10px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(145, 47, 2, 0.94), rgba(48, 14, 2, 0.94));
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* =======================================================
   ARTISTAS RANKING - COLOR IMPORTADO GENERO MOBILE REAL-LIVE
   ======================================================= */
.ranking-genre .artist-card {
  background:
    linear-gradient(
      135deg,
      var(--ranking-artist-card-color, var(--rankings-artist-card-color)) 0%,
      rgba(8, 3, 0, 0.94) 100%
    );
}

.artist-card:hover {
  transform: scale(1.03);
  box-shadow: 0 0 12px rgba(253, 253, 253, 0.58);
}

.artist-position {
  position: absolute;
  top: 7px;
  left: 8px;
  color: #fcf9f7;
  font-size: 0.78rem;
  font-weight: 900;
}

.artist-position::before {
  content: "";
}

.artist-points {
  position: absolute;
  top: 7px;
  right: 8px;
  max-width: calc(100% - 44px);
  color: #f7f6f4;
  font-size: 0.72rem;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.artist-card img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 7px;
  border: 2px solid #fff;
  display: block;
  background: #140600;
}

.artist-name {
  margin: 0;
  color: #fff;
  font-size: 0.78rem;
  line-height: 1.16;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.artist-name a {
  color: #fff;
  text-decoration: none;
}

.artist-name a:hover {
  text-decoration: underline;
}

/* =======================================================
   ARTISTAS RANKING - TEXTO PROTEGIDO MOBILE REAL-LIVE
   ======================================================= */
.artist-name,
.artist-name a {
  display: block;
  max-width: 100%;
  overflow: hidden;
  overflow-wrap: anywhere;
}

/* =======================================================
   ARTISTAS RANKING - POSICION LOGO PUNTOS MOBILE REAL-LIVE
   ======================================================= */
.artist-position,
.artist-points {
  z-index: 3;
  line-height: 18px;
}

.artist-position {
  max-width: calc(50% - 20px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.artist-points {
  max-width: calc(50% - 20px);
}

.artist-card-white-logo {
  position: absolute;
  top: 7px;
  left: 50%;
  z-index: 3;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background-image: url("white.png?v=20260603-2");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 148%;
  box-shadow: none;
  display: block;
  overflow: hidden;
  padding: 0;
  pointer-events: none;
  transform: translateX(-50%);
}

/* =======================================================
   FOOTER COMPARTIR RANKINGS - PUBLICO REAL-LIVE
   ======================================================= */
.footer {
  width: var(--rankings-mobile-width);
  margin: 10px auto 20px;
  padding: 12px 10px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(145, 47, 2, 0.94), rgba(48, 14, 2, 0.94));
  border-top: 1px solid rgba(255, 165, 77, 0.12);
  text-align: center;
}

.footer p {
  margin: 0 0 8px;
  color: #ccc;
  font-size: 0.82rem;
  font-weight: 900;
}

.footer-links {
  font-size: 0.8rem;
  font-weight: 900;
}

.footer-links a {
  color: #999;
  text-decoration: none;
  transition: color 0.25s;
}

.footer-links a:hover {
  color: #ffae42;
}

/* =======================================================
   RESPONSIVE COMPARTIR RANKINGS - MOVIL ESTRECHO REAL-LIVE
   ======================================================= */
@media (max-width: 560px) {
  :root {
    --secondary-bar-height: 70px;
    --rankings-mobile-width: min(94vw, 430px);
  }

  .main-header {
    padding: 10px;
    gap: 8px;
    align-items: center;
  }

  .logo-circle {
    width: 31px;
    height: 31px;
  }

  .logo-text {
    font-size: 0.9rem;
  }

  .header-logo {
    pointer-events: none;
    cursor: default;
  }

  .home-controls {
    left: calc(50% + 9px);
    top: 50%;
    transform: translate(-50%, -50%);
    gap: 6px;
  }

  .direction-btn {
    width: 34px;
    height: 34px;
  }

  .lang-selector {
    min-width: 46px;
    padding: 6px 9px;
    font-size: 0.84rem;
  }

  .compartir-section-title-card {
    right: 8px;
    top: 50%;
    min-height: 36px;
    min-width: 96px;
    padding: 5px 14px;
    font-size: 0.74rem;
  }

  .rankings-share-main {
    padding-top: 10px;
  }

  .genre-jump-bar {
    padding: 10px 0;
  }

  .genre-jump-track {
    gap: 0;
    padding: 2px 14px;
  }

  .genre-jump-dot {
    width: clamp(20px, 6vw, 26px);
    max-width: 26px;
    flex-basis: clamp(20px, 6vw, 26px);
    border-width: 2px;
  }

  /* =======================================================
     BARRA SECUNDARIA RANKINGS - FLUJO INDIE DESPUES DE GOATS MOBILE REAL-LIVE
     ======================================================= */
  .secondary-bar .language-selector.year-btn[data-ranking-key="risings"],
  html[data-active-ranking="risings"] .secondary-bar .language-selector.year-btn[data-ranking-key="2022"] {
    transform: none;
  }

  .secondary-bar .language-selector.year-btn[data-ranking-key="risings"]:hover,
  html[data-active-ranking="risings"] .secondary-bar .language-selector.year-btn[data-ranking-key="2022"]:hover {
    transform: translateY(-1px);
  }

}

@media (max-width: 360px) {
  .logo-text {
    max-width: 145px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .artist-grid {
    grid-template-columns: 1fr;
  }
}

/* =======================================================
   ARTISTAS RANKING - 3 CARDS POR FILA MOBILE REAL-LIVE
   ======================================================= */
@media (max-width: 759px) {
  .artist-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .artist-card {
    min-height: 132px;
    padding: 24px 5px 9px;
    border-radius: 11px;
  }

  .artist-position {
    top: 6px;
    left: 6px;
    font-size: 0.72rem;
  }

  .artist-points {
    top: 6px;
    right: 6px;
    max-width: calc(100% - 38px);
    font-size: 0.66rem;
  }

  .artist-card img {
    width: clamp(58px, 17vw, 76px);
    height: clamp(58px, 17vw, 76px);
    margin-bottom: 6px;
  }

  .artist-name {
    font-size: 0.72rem;
    line-height: 1.12;
  }

  .artist-position,
  .artist-points {
    line-height: 16px;
    max-width: calc(50% - 18px);
  }

  .artist-card-white-logo {
    top: 6px;
    width: 16px;
    height: 16px;
  }
}

/* =======================================================
   ARTISTAS RANKING - 3 CARDS POR FILA MOVIL ESTRECHO REAL-LIVE
   ======================================================= */
@media (max-width: 360px) {
  .artist-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .artist-card {
    min-height: 118px;
    padding: 22px 4px 8px;
  }

  .artist-position {
    top: 5px;
    left: 5px;
    font-size: 0.66rem;
  }

  .artist-points {
    top: 5px;
    right: 5px;
    max-width: calc(100% - 34px);
    font-size: 0.6rem;
  }

  .artist-card img {
    width: 54px;
    height: 54px;
    margin-bottom: 5px;
  }

  .artist-name {
    font-size: 0.66rem;
    line-height: 1.1;
  }

  .artist-position,
  .artist-points {
    line-height: 14px;
    max-width: calc(50% - 16px);
  }

  .artist-card-white-logo {
    top: 5px;
    width: 14px;
    height: 14px;
  }
}

/* =======================================================
   ARTISTAS RANKING - ALTURA MAXIMA NOMBRE MOBILE REAL-LIVE
   ======================================================= */
@media (max-width: 759px) {
  .artist-name {
    max-height: 1.6128rem;
  }
}

/* =======================================================
   ARTISTAS RANKING - BLOQUE FOTO NOMBRE CENTRADO MOBILE REAL-LIVE
   ======================================================= */
@media (max-width: 759px) {
  .artist-card img,
  .artist-name {
    transform: translateY(7px);
  }
}

/* =======================================================
   ARTISTAS RANKING - BLOQUE FOTO NOMBRE CENTRADO MOVIL ESTRECHO REAL-LIVE
   ======================================================= */
@media (max-width: 360px) {
  .artist-card img,
  .artist-name {
    transform: translateY(5px);
  }
}

/* =======================================================
   ARTISTAS RANKING - ALTURA MAXIMA NOMBRE MOVIL ESTRECHO REAL-LIVE
   ======================================================= */
@media (max-width: 360px) {
  .artist-name {
    max-height: 1.452rem;
  }
}

/* =======================================================
   RESPONSIVE COMPARTIR RANKINGS - TABLET/PC SIN ROMPER
   ======================================================= */
@media (min-width: 760px) {
  :root {
    --rankings-mobile-width: min(92vw, 860px);
  }

  .main-header {
    justify-content: flex-start;
  }

  .home-controls {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    margin-left: 28px;
  }

  .compartir-section-title-card {
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
  }

  .secondary-bar .container {
    padding: 12px 0;
  }

  .sb-group {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .ranking-current-label {
    grid-row: auto;
  }

  .genre-cover {
    width: 100px;
    height: 100px;
    flex-basis: 100px;
  }

  .genre-name {
    font-size: 1.25rem;
  }

  .artist-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* =======================================================
   COMPARTIR SONG - CARD CANCION PORTADA CUADRADA REAL-LIVE
   ======================================================= */
.song-share-page .artist-card {
  --song-card-content-offset: 19px;
  min-height: 168px;
  padding: 24px 6px 11px;
}

.song-share-page .artist-points {
  display: none !important;
}

.song-share-page .artist-card img {
  display: block;
  width: clamp(64px, 18vw, 82px);
  height: clamp(64px, 18vw, 82px);
  border-radius: 10px;
  margin: 0 auto 7px auto;
  object-fit: cover;
  transform: translateY(var(--song-card-content-offset));
}

/* =======================================================
   COMPARTIR SONG - BOTON CARD CANCION INDIVIDUAL REAL-LIVE
   ======================================================= */
.song-share-page .artist-card > .song-artist-share-button {
  top: 7px;
  right: 7px;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  box-shadow: 0 4px 9px rgba(0, 0, 0, 0.38);
  overflow: visible;
}

.song-share-page .artist-card > .song-artist-share-button .ranking-share-icon {
  z-index: 1;
  transform: scale(0.58);
}

/* =======================================================
   COMPARTIR SONG - AREA CLICK INVISIBLE BOTON CARD REAL-LIVE
   ======================================================= */
.song-share-page .artist-card > .song-artist-share-button::before {
  content: "";
  position: absolute;
  top: -7px;
  right: -7px;
  bottom: -20px;
  left: -48px;
  background: transparent;
}

/* =======================================================
   COMPARTIR SONG - MENU CARD CANCION INDIVIDUAL REAL-LIVE
   ======================================================= */
.song-share-page .song-artist-share-menu {
  position: fixed;
  top: 50%;
  left: 50%;
  right: auto;
  z-index: 2147483000;
  width: min(292px, calc(100vw - 20px));
  transform: translate(-50%, -50%);
}

/* =======================================================
   COMPARTIR SONG - TITULO Y ARTISTA CARD CANCION REAL-LIVE
   ======================================================= */
.song-share-page .song-title {
  display: block;
  max-width: 100%;
  margin: 0 0 4px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.14;
  overflow: hidden;
  overflow-wrap: normal;
  text-overflow: ellipsis;
  transform: translateY(var(--song-card-content-offset));
  white-space: nowrap;
}

.song-share-page .song-title a {
  display: block;
  max-width: 100%;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
  white-space: nowrap;
}

.song-share-page .song-title a:hover {
  text-decoration: underline;
}

.song-share-page .song-artist-name {
  display: block;
  max-height: none;
  max-width: 100%;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1.1;
  overflow: hidden;
  overflow-wrap: normal;
  text-overflow: ellipsis;
  transform: translateY(var(--song-card-content-offset));
  white-space: nowrap;
}

.song-share-page .song-artist-name a {
  display: block;
  max-width: 100%;
  color: rgba(255, 255, 255, 0.78);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* =======================================================
   COMPARTIR SONG - RESPONSIVE CARD CANCION MOBILE REAL-LIVE
   ======================================================= */
@media (max-width: 759px) {
  .song-share-page .artist-card {
    --song-card-content-offset: 18px;
    min-height: 156px;
    padding: 22px 4px 10px;
  }

  .song-share-page .artist-card img {
    width: clamp(58px, 17vw, 76px);
    height: clamp(58px, 17vw, 76px);
    margin-bottom: 6px;
  }

  .song-share-page .artist-card > .song-artist-share-button {
    top: 6px;
    right: 6px;
  }

  .song-share-page .artist-card > .song-artist-share-button::before {
    top: -6px;
    right: -6px;
    bottom: -18px;
    left: -44px;
  }

  .song-share-page .song-title {
    font-size: 0.72rem;
    line-height: 1.12;
  }

  .song-share-page .song-artist-name {
    font-size: 0.62rem;
    line-height: 1.1;
  }
}

/* =======================================================
   COMPARTIR SONG - RESPONSIVE CARD CANCION MOVIL ESTRECHO REAL-LIVE
   ======================================================= */
@media (max-width: 360px) {
  .song-share-page .artist-card {
    --song-card-content-offset: 22px;
    min-height: 143px;
    padding: 21px 4px 9px;
  }

  .song-share-page .artist-card img {
    width: 56px;
    height: 56px;
    margin-bottom: 5px;
  }

  .song-share-page .artist-card > .song-artist-share-button {
    top: 5px;
    right: 5px;
  }

  .song-share-page .artist-card > .song-artist-share-button::before {
    top: -5px;
    right: -5px;
    bottom: -20px;
    left: -38px;
  }

  .song-share-page .song-title {
    font-size: 0.67rem;
    line-height: 1.1;
  }

  .song-share-page .song-artist-name {
    font-size: 0.58rem;
    line-height: 1.08;
  }
}

/* =======================================================
   COMPARTIR SONG - DASHBOARD HEADER MOBILE BASE OCULTA PC REAL-LIVE
   ======================================================= */
.header-right,
.header-nav,
.home-icon-2d,
.lang-btn,
.login-spotify-btn,
.mobile-dashboard-menu-shell,
.mobile-dashboard-menu-btn,
#mobile-dashboard-menu {
  display: none;
}

.explorar-dropdown {
  position: absolute;
  top: 60px;
  right: 115px;
  width: 350px;
  background: #120700;
  border: 2px solid #ff9a3c;
  border-radius: 14px;
  padding: 15px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: max-height .35s ease, opacity .25s ease, transform .25s ease;
  z-index: 9999;
}

.explorar-item {
  width: 90%;
  padding: 3px 0;
  text-align: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: #ffd79e;
  text-decoration: none;
  border-bottom: 2px solid rgba(255,150,50,0.35);
  background: linear-gradient(180deg, #4a1a00, #2a0c00);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease, color 0.2s ease;
  margin: 0 auto;
}

/* =======================================================
   COMPARTIR SONG - BARRA DASHBOARD MOBILE REAL-LIVE
   ======================================================= */
@media (hover: none) and (pointer: coarse) and (max-width: 920px),
       (hover: none) and (pointer: coarse) and (orientation: landscape) and (max-height: 560px) {
  .main-header,
  .main-header * {
    box-sizing: border-box;
  }

  .main-header {
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    height: var(--secondary-bar-height);
    min-height: var(--secondary-bar-height);
    padding: 10px;
    gap: 0;
    justify-content: flex-start;
    align-items: center;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.42);
    overflow: visible;
  }

  .compartir-section-title-card {
    display: none !important;
  }

  .header-logo {
    gap: 0.6rem;
    min-width: 0;
    max-width: calc(100vw - 238px);
    margin-right: 0;
    font-size: clamp(0.84rem, 3.4vw, 0.9rem);
    font-weight: 900;
    flex: 0 1 auto;
    transform: none;
  }

  .header-logo:hover {
    transform: none;
    opacity: 0.88;
  }

  .logo-circle {
    width: 31px;
    height: 31px;
    flex: 0 0 31px;
  }

  .logo-text {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .home-icon-2d,
  .login-spotify-btn,
  .header-right > :not(.lang-selector):not(.mobile-dashboard-menu-shell) {
    display: none !important;
  }

  .home-controls {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    z-index: 1202;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 0 0 auto;
    margin-left: 6px;
    margin-right: 0;
    transform: none;
  }

  .language-selector-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }

  .lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    top: 0;
    min-width: 54px;
    min-height: 34px;
    padding: 6px 11px;
    border: 2px solid #faf6f6;
    border-radius: 25px;
    background: linear-gradient(180deg, #eb4411 0%, #000000 50%, #6b2205 100%);
    color: #fff;
    font-family: var(--font-primary);
    font-size: 0.84rem;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    cursor: pointer;
  }

  .direction-btn {
    --scale: 1;
    position: relative;
    top: auto;
    left: auto;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    margin-left: 0;
  }

  .direction-btn .arrow-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 13px solid #fff;
  }

  .direction-btn.down .arrow-icon {
    transform: translate(-50%, -50%) rotate(180deg);
  }

  .header-right {
    position: relative;
    top: auto;
    right: auto;
    height: auto;
    max-width: none;
    z-index: 1201;
    display: inline-flex;
    flex: 0 0 auto;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    padding: 0;
    transform: none;
    gap: 6px;
  }

  .header-right .lang-selector {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    min-height: 34px;
    padding: 6px 9px;
    border-radius: 25px;
    font-size: 0.84rem;
    font-weight: 900;
    line-height: 1;
  }

  .mobile-dashboard-menu-shell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
  }

  .mobile-dashboard-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 62px;
    min-height: 34px;
    padding: 6px 10px;
    border: 2px solid #fff;
    border-radius: 25px;
    background: linear-gradient(180deg, #4a1a00, #120700);
    color: #fff;
    font-family: var(--font-primary);
    font-size: 0.84rem;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    list-style: none;
    transition: transform .2s ease, opacity .2s ease, background .2s ease;
  }

  .mobile-dashboard-menu-btn::-webkit-details-marker {
    display: none;
  }

  .mobile-dashboard-menu-btn:hover,
  .mobile-dashboard-menu-btn:focus-visible {
    background: linear-gradient(180deg, #ff7c11, #7a2600);
    opacity: 0.95;
    outline: none;
    transform: scale(1.03);
  }

  #mobile-dashboard-menu.mobile-dashboard-dropdown {
    position: fixed;
    top: calc(var(--secondary-bar-height) + 8px);
    left: 50%;
    right: auto;
    width: min(310px, calc(100vw - 32px));
    max-height: 0;
    display: flex;
    padding: 12px 0;
    transform: translate(-50%, -10px);
    z-index: 99999;
  }

  #mobile-dashboard-menu.mobile-dashboard-dropdown .explorar-item {
    min-height: 36px;
    padding: 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
  }

  .mobile-dashboard-menu-shell[open] #mobile-dashboard-menu.mobile-dashboard-dropdown,
  #mobile-dashboard-menu.mobile-dashboard-dropdown.show {
    max-height: min(520px, calc(100vh - var(--secondary-bar-height) - 24px));
    overflow-y: auto;
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@media (hover: none) and (pointer: coarse) and (max-width: 360px) {
  .mobile-dashboard-menu-btn {
    min-width: 56px;
    padding-right: 8px;
    padding-left: 8px;
  }
}
