/* ============================================================
   Melocotón Play – Página principal
   Todas las clases van con prefijo .mp- para no chocar con el tema.
   ============================================================ */
.mp-home {
    --mp-accent: #ff9800;
    --mp-accent-2: #ffc107;
    --mp-text: #263238;
    --mp-muted: #6b7280;
    --mp-card: #ffffff;
    --mp-border: #ececec;
    --mp-radius: 14px;
    --mp-shadow: 0 4px 18px rgba(0, 0, 0, .08);
    color: var(--mp-text);
    background: #fafafa;
}
.mp-home a { text-decoration: none; }

/* ---------- Botones ---------- */
.mp-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 22px; border: 0; border-radius: 999px;
    background: var(--mp-accent); color: #fff !important; font-weight: 600;
    cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s;
}
.mp-btn:hover { background: #fb8c00; transform: translateY(-1px); box-shadow: var(--mp-shadow); }
.mp-btn--light { background: #fff; color: var(--mp-text) !important; }
.mp-btn--light:hover { background: #fff8e1; }
.mp-btn--outline { background: transparent; border: 2px solid #fff; }
.mp-btn--outline:hover { background: rgba(255, 255, 255, .15); }

/* ---------- Hero ---------- */
.mp-hero__slide { padding: 40px 0 72px; color: #fff; }
.mp-hero__cover {
    width: 100%; max-width: 300px; aspect-ratio: 1 / 1; object-fit: cover;
    border-radius: var(--mp-radius); box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
    margin: 0 auto 20px; display: block;
}
.owl-carousel .owl-item img.mp-hero__cover { width: 100%; max-width: 300px; }
.mp-hero__info { text-align: left; }
.mp-badge {
    display: inline-block; padding: 4px 12px; border-radius: 999px;
    background: rgba(255, 255, 255, .22); font-size: 13px; font-weight: 600;
    letter-spacing: .4px; text-transform: uppercase; margin-bottom: 10px;
}
.mp-home .mp-hero__title {
    color: #fff; font-size: clamp(26px, 4vw, 44px); line-height: 1.15;
    font-weight: 800; margin: 0 0 6px;
}
.mp-hero__autor { color: rgba(255, 255, 255, .9) !important; font-size: 18px; font-weight: 600; }
.mp-hero__autor:hover { text-decoration: underline; }
.mp-hero__desc { color: rgba(255, 255, 255, .92); margin: 14px 0 22px; max-width: 560px; font-size: 15px; }
.mp-hero .owl-carousel { position: relative; }
.mp-hero .owl-theme .owl-dots {
    position: absolute; left: 0; right: 0; bottom: 40px; margin: 0 !important;
    display: flex; justify-content: center; align-items: center; gap: 4px;
    z-index: 6; pointer-events: none;
}
.mp-hero .owl-theme .owl-dots .owl-dot { pointer-events: auto; }
.mp-hero .owl-theme .owl-dots .owl-dot span {
    width: 10px; height: 10px; margin: 0 3px; border-radius: 999px;
    background: rgba(255, 255, 255, .5); transition: width .25s, background .25s;
}
.mp-hero .owl-theme .owl-dots .owl-dot:hover span { background: rgba(255, 255, 255, .8); }
.mp-hero .owl-theme .owl-dots .owl-dot.active span { width: 28px; background: #fff; }

/* ---------- Buscador ---------- */
.mp-search-wrap { margin-top: -26px; position: relative; z-index: 5; }
.mp-search {
    display: flex; align-items: center; gap: 10px;
    background: #fff; border-radius: 999px; padding: 6px 6px 6px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .12); max-width: 760px; margin: 0 auto;
}
.mp-search i { font-size: 1.4em; color: var(--mp-muted); }
.mp-search input {
    flex: 1; min-width: 0; border: 0; outline: 0; font-size: 16px;
    background: transparent; color: var(--mp-text); padding: 8px 0;
}
.mp-quick {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 18px auto 0;
}
.mp-quick a {
    padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--mp-border);
    color: var(--mp-text) !important; font-size: 14px; font-weight: 500; transition: all .15s;
}
.mp-quick a:hover { border-color: var(--mp-accent); color: var(--mp-accent) !important; }

/* ---------- Secciones ---------- */
.mp-body { padding-top: 10px; padding-bottom: 20px; }
.mp-section { margin-top: 36px; }
.mp-section__head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin-bottom: 16px; border-bottom: 2px solid var(--mp-border); padding-bottom: 8px;
}
.mp-home .mp-section__head h2 { font-size: 22px; font-weight: 700; margin: 0; color: var(--mp-text); }
.mp-section__head h2 i { color: var(--mp-accent); margin-right: 6px; }
.mp-more { color: var(--mp-accent) !important; font-weight: 600; font-size: 14px; white-space: nowrap; }
.mp-more:hover { text-decoration: underline; }
.mp-empty { color: var(--mp-muted); padding: 12px; }

/* ---------- Grilla de álbumes ---------- */
.mp-grid {
    display: grid; gap: 18px;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}
.mp-card {
    display: block; background: var(--mp-card); border-radius: var(--mp-radius);
    overflow: hidden; box-shadow: 0 1px 4px rgba(0, 0, 0, .06); transition: transform .2s, box-shadow .2s;
}
.mp-card:hover { transform: translateY(-4px); box-shadow: var(--mp-shadow); }
.mp-card__img { position: relative; aspect-ratio: 1 / 1; background: #eee; }
.mp-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mp-card__play {
    position: absolute; right: 10px; bottom: 10px; width: 42px; height: 42px; border-radius: 50%;
    background: var(--mp-accent); color: #fff; display: flex; align-items: center; justify-content: center;
    opacity: 0; transform: translateY(8px); transition: all .2s; box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
}
.mp-card:hover .mp-card__play { opacity: 1; transform: none; }
.mp-card__body { padding: 10px 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.mp-card__body strong {
    color: var(--mp-text); font-size: 15px; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mp-card__body span { color: var(--mp-muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Ranking de temas ---------- */
.mp-ranking { list-style: none; margin: 0; padding: 0; background: #fff; border-radius: var(--mp-radius); box-shadow: 0 1px 4px rgba(0, 0, 0, .06); }
.mp-ranking li + li { border-top: 1px solid var(--mp-border); }
.mp-ranking a { display: flex; align-items: center; gap: 12px; padding: 10px 14px; color: var(--mp-text) !important; }
.mp-ranking a:hover { background: #fff8e1; }
.mp-ranking__n { width: 24px; text-align: center; font-weight: 800; color: var(--mp-accent); font-size: 18px; }
.mp-ranking img { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.mp-ranking__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mp-ranking__txt strong, .mp-ranking__txt small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-ranking__txt small { color: var(--mp-muted); }
.mp-ranking__play { font-size: 26px; color: #cfd8dc; transition: color .15s; }
.mp-ranking a:hover .mp-ranking__play { color: var(--mp-accent); }

/* ---------- Reproductor online ---------- */
.mp-player { border-radius: var(--mp-radius); overflow: hidden; box-shadow: 0 1px 4px rgba(0, 0, 0, .06); background: #fff; }
.mp-player iframe { width: 100%; height: 380px; display: block; }
.mp-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.mp-links a { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 4px rgba(0, 0, 0, .06); transition: transform .2s; }
.mp-links a:hover { transform: translateY(-3px); }
.mp-links img { width: 100%; display: block; }

/* ---------- Artistas (scroll horizontal) ---------- */
.mp-scroller {
    display: grid; grid-auto-flow: column; grid-auto-columns: 130px; gap: 18px;
    overflow-x: auto; padding: 4px 2px 14px; scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}
.mp-artist { scroll-snap-align: start; text-align: center; color: var(--mp-text) !important; display: flex; flex-direction: column; align-items: center; }
.mp-artist img, .mp-artist__ini {
    width: 120px; height: 120px; border-radius: 50%; object-fit: cover;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .12); transition: transform .2s;
}
.mp-artist__ini {
    display: flex; align-items: center; justify-content: center; font-size: 44px; font-weight: 800; color: #fff;
    background: linear-gradient(135deg, var(--mp-accent-2), var(--mp-accent));
}
.mp-artist:hover img, .mp-artist:hover .mp-artist__ini { transform: scale(1.05); }
.mp-artist__name { margin-top: 10px; font-weight: 600; font-size: 14px; line-height: 1.25; max-width: 130px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mp-artist small { color: var(--mp-muted); font-size: 12px; }

/* ---------- Categorías ---------- */
.mp-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.mp-chip {
    padding: 9px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--mp-border);
    color: var(--mp-text) !important; font-weight: 500; transition: all .15s;
}
.mp-chip:hover { background: var(--mp-accent); border-color: var(--mp-accent); color: #fff !important; }

/* ---------- Letras ---------- */
.mp-lyrics { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.mp-lyric {
    background: #fff; border-radius: var(--mp-radius); padding: 18px; box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
    border-left: 4px solid var(--mp-accent-2); display: flex; flex-direction: column;
}
.mp-lyric small { color: var(--mp-muted); text-transform: uppercase; font-size: 12px; letter-spacing: .4px; }
.mp-home .mp-lyric h3 { font-size: 17px; margin: 4px 0 8px; color: var(--mp-text); }
.mp-lyric p { color: #555; font-size: 14px; flex: 1; margin-bottom: 10px; }

/* ---------- App ---------- */
.mp-app {
    margin-top: 44px; border-radius: 20px; padding: 32px; color: #fff;
    background: linear-gradient(135deg, #ff9800 0%, #f44336 100%);
}
.mp-home .mp-app h2 { color: #fff; font-weight: 800; margin: 0 0 6px; }
.mp-app p { color: rgba(255, 255, 255, .92); max-width: 620px; }
.mp-app__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
    .mp-hero__slide { padding: 24px 0 64px; }
    .mp-hero .owl-theme .owl-dots { bottom: 36px; }
    .mp-hero__info { text-align: center; }
    .mp-hero__cover { max-width: 220px; }
    .owl-carousel .owl-item img.mp-hero__cover { max-width: 220px; }
    .mp-hero__desc { margin-left: auto; margin-right: auto; }
    .mp-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .mp-search button { padding: 10px 16px; }
    .mp-section { margin-top: 28px; }
    .mp-section__head h2 { font-size: 19px; }
    .mp-scroller { grid-auto-columns: 104px; gap: 12px; }
    .mp-artist img, .mp-artist__ini { width: 96px; height: 96px; }
    .mp-player iframe { height: 300px; }
    .mp-app { padding: 24px; text-align: center; }
    .mp-app__actions { justify-content: center; }
}
