/* ========================================
   VivoMusic - Index Page CSS
   Slider + Global Player
   ======================================== */

.sc-hero {
    display: flex; align-items: center; justify-content: space-between;
    gap: 2rem; padding: 2rem 1.5rem; margin-bottom: 1.5rem;
    background: linear-gradient(145deg, rgba(10,25,15,0.5), rgba(5,15,10,0.7));
    border: 1px solid rgba(34,197,94,0.06); border-radius: 20px; flex-wrap: wrap;
}
.sc-hero-content { flex: 1; min-width: 250px; }
.sc-hero-badge { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.25rem 0.9rem; background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.12); border-radius: 18px; font-size: 0.75rem; color: #4ade80; margin-bottom: 0.8rem; }
.sc-hero-title { font-size: 2.2rem; color: #fff; font-weight: 800; line-height: 1.4; margin-bottom: 0.6rem; }
.sc-hero-title span { background: linear-gradient(135deg, #22c55e, #4ade80); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.sc-hero-desc { color: #86efac; font-size: 0.9rem; margin-bottom: 1.2rem; line-height: 1.8; }
.sc-hero-btns { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.sc-hero-btn { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.6rem 1.5rem; border-radius: 22px; text-decoration: none; font-size: 0.85rem; font-weight: 600; transition: all 0.3s; font-family: 'FarDomrol', sans-serif; }
.sc-hero-btn-primary { background: linear-gradient(135deg, #166534, #22c55e); color: #fff; box-shadow: 0 4px 18px rgba(34,197,94,0.2); }
.sc-hero-btn-primary:hover { box-shadow: 0 6px 25px rgba(34,197,94,0.35); transform: translateY(-2px); }
.sc-hero-btn-secondary { background: transparent; border: 1.5px solid rgba(34,197,94,0.25); color: #4ade80; }
.sc-hero-btn-secondary:hover { background: rgba(34,197,94,0.08); border-color: #22c55e; }
.sc-hero-stats { display: flex; gap: 1rem; flex-shrink: 0; }
.sc-stat { text-align: center; padding: 1rem 1.2rem; background: rgba(10,20,10,0.4); border: 1px solid rgba(34,197,94,0.06); border-radius: 14px; min-width: 80px; }
.sc-stat strong { display: block; font-size: 1.5rem; color: #fff; font-weight: 800; margin: 0.3rem 0 0.1rem; }

/* ============ SECTION ============ */
.sc-section { margin: 1.8rem 0; }
.sc-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; gap: 0.6rem; }
.sc-section-title { display: flex; align-items: center; gap: 0.5rem; }
.sc-section-title h2 { font-size: 1.15rem; color: #fff; font-weight: 700; }
.sc-section-link { color: #86efac; text-decoration: none; font-size: 0.75rem; padding: 0.3rem 0.9rem; border: 1px solid rgba(34,197,94,0.12); border-radius: 18px; transition: all 0.3s; white-space: nowrap; }
.sc-section-link:hover { background: rgba(34,197,94,0.08); color: #4ade80; border-color: #22c55e; }

/* ============ SLIDER ============ */
.sc-slider-wrap { position: relative; }
.sc-slider-track {
    display: flex; gap: 0.8rem;
    overflow-x: auto; scroll-behavior: smooth;
    scrollbar-width: none; -ms-overflow-style: none;
    padding: 0.3rem 0.2rem 0.5rem;
}
.sc-slider-track::-webkit-scrollbar { display: none; }

.sc-slider-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(10,20,10,0.9); border: 1px solid rgba(34,197,94,0.2);
    color: #86efac; font-size: 1.3rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    z-index: 5; transition: all 0.3s; font-family: 'FarDomrol', sans-serif;
}
.sc-slider-arrow:hover { background: rgba(34,197,94,0.15); color: #fff; border-color: #22c55e; }
.sc-slider-prev { left: -8px; }
.sc-slider-next { right: -8px; }

/* ============ CARD (same size as explore.php) ============ */
.sc-card {
    flex: 0 0 180px;
    background: rgba(10,20,10,0.5); border: 1px solid rgba(34,197,94,0.06);
    border-radius: 14px; overflow: hidden; transition: all 0.3s ease;
}
.sc-card:hover { border-color: rgba(34,197,94,0.25); transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.3); }
.sc-card a { text-decoration: none; }

.sc-cover-img { position: relative; width: 100%; aspect-ratio: 1; overflow: hidden; background: linear-gradient(135deg, #0a1a10, #0d2d1a); }
.sc-cover-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; display: block; }
.sc-card:hover .sc-cover-img img { transform: scale(1.05); }
.sc-cover-placeholder { position: relative; width: 100%; aspect-ratio: 1; background: linear-gradient(135deg, #0a1a10, #166534, #0a1a10); display: flex; align-items: center; justify-content: center; }
.sc-play-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.3); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.25s ease; cursor: pointer; z-index: 2; }
.sc-card:hover .sc-play-overlay { opacity: 1; }
.sc-play-icon { width: 0; height: 0; border-left: 22px solid #fff; border-top: 14px solid transparent; border-bottom: 14px solid transparent; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); transform: translateX(2px); }

.sc-info { padding: 0.55rem 0.65rem; }
.sc-title { color: #fff; font-size: 0.75rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; margin-bottom: 0.1rem; text-decoration: none; }
.sc-title:hover { color: #4ade80; }
.sc-artist { color: #86efac; font-size: 0.65rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 0.35rem; }
.sc-meta { display: flex; justify-content: space-between; font-size: 0.65rem; color: #86efac; padding-top: 0.3rem; border-top: 1px solid rgba(255,255,255,0.02); }

/* ============ GLOBAL PLAYER ============ */
.global-player {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 999;
    background: linear-gradient(180deg, rgba(5,12,8,0.99), rgba(2,8,4,0.99));
    border-top: 2px solid rgba(34,197,94,0.2);
    padding: 0.6rem 1.2rem; display: none; flex-direction: column; gap: 0.5rem;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.6);
}
.global-player.active { display: flex; }
.gp-progress-wrap { width: 100%; direction: ltr; }
.gp-progress-bar { width: 100%; height: 8px; background: #1a1a1a; border-radius: 4px; cursor: pointer; position: relative; overflow: visible; }
.gp-progress-fill { height: 100%; background: linear-gradient(90deg, #22c55e, #4ade80); border-radius: 4px; width: 0; position: absolute; left: 0; top: 0; transition: width 0.15s linear; }
.gp-progress-thumb { position: absolute; top: 50%; transform: translate(-50%,-50%); width: 18px; height: 18px; background: #fff; border-radius: 50%; border: 3px solid #22c55e; box-shadow: 0 2px 10px rgba(0,0,0,0.5); z-index: 2; left: 0; transition: left 0.15s linear; }
.gp-time-row { display: flex; justify-content: space-between; color: #86efac; font-size: 0.75rem; margin-top: 0.2rem; direction: ltr; }
.gp-content { display: flex; align-items: center; gap: 0.8rem; }
.gp-cover { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; border: 1px solid rgba(34,197,94,0.2); flex-shrink: 0; }
.gp-cover-ph { width: 44px; height: 44px; border-radius: 8px; background: linear-gradient(135deg,#0a2a1a,#166534); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.gp-info { flex: 1; min-width: 0; }
.gp-title { color: #fff; font-size: 0.82rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gp-artist { color: #86efac; font-size: 0.7rem; }
.gp-controls { display: flex; align-items: center; gap: 0.8rem; flex-shrink: 0; }
.gp-ctrl { background: none; border: none; color: #86efac; cursor: pointer; font-size: 1.1rem; padding: 0.3rem; transition: all 0.2s; border-radius: 50%; font-family: 'FarDomrol', sans-serif; }
.gp-ctrl:hover { color: #fff; }
.gp-ctrl-skip { width: 36px; height: 36px; color: #fff !important; font-size: 0.75rem; font-weight: 700; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.gp-ctrl-play { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg,#166534,#22c55e); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; box-shadow: 0 4px 20px rgba(34,197,94,0.3); }
.gp-ctrl-close { color: #f87171; font-size: 0.9rem; }
.gp-vol { display: flex; align-items: center; gap: 0.2rem; }
.gp-vol-btn { background: none; border: none; color: #86efac; cursor: pointer; font-size: 0.8rem; padding: 0.2rem; }
.gp-vol-slider { width: 50px; height: 3px; -webkit-appearance: none; appearance: none; background: rgba(255,255,255,0.1); border-radius: 2px; outline: none; cursor: pointer; direction: ltr; }
.gp-vol-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; background: #22c55e; border-radius: 50%; border: 2px solid #fff; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1000px) { .sc-card { flex: 0 0 160px; } }
@media (max-width: 768px) {
    .sc-hero { flex-direction: column; text-align: center; padding: 1.2rem 1rem; }
    .sc-hero-title { font-size: 1.6rem; }
    .sc-hero-stats { justify-content: center; }
    .sc-card { flex: 0 0 145px; }
    .sc-info { padding: 0.45rem 0.5rem; }
    .sc-title { font-size: 0.7rem; }
    .sc-artist { font-size: 0.6rem; }
    .sc-slider-arrow { width: 30px; height: 30px; font-size: 1rem; }
    .global-player { padding: 0.5rem 0.8rem; }
    .gp-progress-bar { height: 10px; }
    .gp-ctrl-skip { width: 32px; height: 32px; font-size: 0.65rem; }
    .gp-ctrl-play { width: 36px; height: 36px; font-size: 1rem; }
}
@media (max-width: 400px) {
    .sc-card { flex: 0 0 130px; }
    .sc-hero-title { font-size: 1.3rem; }
    .gp-progress-bar { height: 8px; }
}

/* ============ PLAY BUTTON ON CARD ============ */
.sc-play-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #22c55e;
    border: 2px solid rgba(255,255,255,0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(34,197,94,0.4);
}

.sc-card:hover .sc-play-btn {
    opacity: 1;
    transform: translateY(0);
}

.sc-play-btn:hover {
    background: #4ade80;
    transform: translateY(0) scale(1.15) !important;
    box-shadow: 0 6px 25px rgba(34,197,94,0.6);
}

.sc-play-btn:active {
    transform: translateY(0) scale(0.95) !important;
}

.sc-play-btn-icon {
    width: 0;
    height: 0;
    border-left: 10px solid #fff;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    margin-left: 2px;
}

/* Cover link */
.sc-card-link {
    display: block;
    text-decoration: none;
}

/* ============ SLIDER ============ */
.sc-slider-wrap { position: relative; }
.sc-slider-track {
    display: flex; gap: 0.8rem;
    overflow-x: auto; scroll-behavior: smooth;
    scrollbar-width: none; -ms-overflow-style: none;
    padding: 0.3rem 0.2rem 0.5rem;
}
.sc-slider-track::-webkit-scrollbar { display: none; }

.sc-slider-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(10,20,10,0.9); border: 1px solid rgba(34,197,94,0.2);
    color: #86efac; font-size: 1.3rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    z-index: 5; transition: all 0.3s; font-family: 'FarDomrol', sans-serif;
}
.sc-slider-arrow:hover { background: rgba(34,197,94,0.15); color: #fff; border-color: #22c55e; }
.sc-slider-prev { left: -8px; }
.sc-slider-next { right: -8px; }

/* ============ CARD ============ */
.sc-card {
    flex: 0 0 180px;
    background: rgba(10,20,10,0.5); border: 1px solid rgba(34,197,94,0.06);
    border-radius: 14px; overflow: hidden; transition: all 0.3s ease;
    position: relative;
}
.sc-card:hover { border-color: rgba(34,197,94,0.25); transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.3); }

.sc-cover-img { position: relative; width: 100%; aspect-ratio: 1; overflow: hidden; background: linear-gradient(135deg, #0a1a10, #0d2d1a); }
.sc-cover-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; display: block; }
.sc-card:hover .sc-cover-img img { transform: scale(1.05); }
.sc-cover-placeholder { position: relative; width: 100%; aspect-ratio: 1; background: linear-gradient(135deg, #0a1a10, #166534, #0a1a10); display: flex; align-items: center; justify-content: center; }

.sc-info { padding: 0.55rem 0.65rem; }
.sc-title { color: #fff; font-size: 0.75rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; margin-bottom: 0.1rem; text-decoration: none; }
.sc-title:hover { color: #4ade80; }
.sc-artist { color: #86efac; font-size: 0.65rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 0.35rem; }
.sc-meta { display: flex; justify-content: space-between; font-size: 0.65rem; color: #86efac; padding-top: 0.3rem; border-top: 1px solid rgba(255,255,255,0.02); }

/* Mobile */
@media (max-width: 768px) {
    .sc-card { flex: 0 0 145px; }
    .sc-play-btn { width: 28px; height: 28px; bottom: 6px; right: 6px; }
    .sc-play-btn-icon { border-left-width: 8px; border-top-width: 5px; border-bottom-width: 5px; }
}
@media (max-width: 400px) {
    .sc-card { flex: 0 0 130px; }
}