/* =========================================================
   RatedTunes — Custom UI Layer (Production Patch)
   Source: index.html inline mirror
   ========================================================= */


/* =========================================================
   1. GLOBAL HIDES / CLEANUP
   ========================================================= */

/* Remove unwanted element */
.goat {
    display: none !important;
}

/* Remove bottom spacing artifacts */
.ms_index_secwrap:last-child,
.ms_songslist_main:last-child,
.ms_index_inner {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.ms_songslist_wrap {
    margin-bottom: 0 !important;
}

/* Hide unused sections (artists, albums, sliders) */
.section:has(.artist_nav),
.section:has(.album_inner_list),
.section:has(.ms_artist_slider) {
    display: none !important;
}


/* =========================================================
   2. WAVEFORM NORMALIZATION
   ========================================================= */

/* Force consistent waveform height */
.audioplayer_waveform,
.audioplayer_waveform_inner,
#waveform {
    height: 50px !important;
}

/* Canvas inside waveform */
#waveform canvas {
    height: 50px !important;
}


/* =========================================================
   3. BASE BACKGROUND SYSTEM
   ========================================================= */

html body {
    min-height: 100%;
    background:
        radial-gradient(circle at 20% 0%, rgba(58, 167, 255, 0.18), transparent 50%),
        linear-gradient(120deg, #08121f 0%, #0f1f33 55%, #050b14 100%) !important;
    background-attachment: fixed !important;
}


/* =========================================================
   4. TYPOGRAPHY (TRACK CARD TEXT SYSTEM)
   Minimal readable UI layer
   ========================================================= */

/* Track name */
.songslist_name .song_name,
.songslist_name .song_name > a {
    color: #ffffff !important;
    font-weight: 600;
}

/* Hover track name */
.songslist_name .song_name > a:hover {
    color: #3aa7ff !important;
}

/* Artist */
.songslist_name .song_artist,
.songslist_name .song_artist a {
    color: #a8bdd2 !important;
}

/* Style label */
.songslist_name .track_style {
    color: #7f96ad !important;
    font-size: 11px;
}


/* =========================================================
   5. DEFAULT FOOTER DISABLE (THEME OVERRIDE)
   ========================================================= */

/* Disable original theme footer */
.footer {
    display: none !important;
}

/* Disable old RT footer (initial state) */
.rt-footer {
    display: none;
}

/* Remove legacy footer borders */
.ms_copyright {
    border-top: none !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.footer_border {
    display: none !important;
}


/* =========================================================
   6. CUSTOM FOOTER (RT FOOTER SYSTEM)
   ========================================================= */

/* Main container */
.rt-footer {
    margin-bottom: 80px !important;
    margin-top: 20px !important;
    width: 100%;
    background: linear-gradient(180deg, #07111f 0%, #0b1828 100%);
    color: #8fa6c1;
    overflow: hidden;
}

/* Glow line */
.rt-footer-glow {
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg, transparent, #3aa7ff, #8b5cf6, #3aa7ff, transparent);
    box-shadow: 0 0 22px rgba(58, 167, 255, 0.75);
}

/* Inner container */
.rt-footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 34px 22px 22px !important;
}

/* Grid layout */
.rt-footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: start;
    text-align: center;
}

/* Titles */
.rt-footer h4 {
    color: #fff;
    font-size: 16px;
    margin: 0 0 14px;
}

/* Text */
.rt-footer p {
    margin: 7px 0;
    font-size: 14px;
    line-height: 1.5;
}

/* Highlighted text */
.rt-footer span {
    color: #d8e7f7;
    font-weight: 600;
}

/* Links */
.rt-footer a {
    display: block;
    color: #62b7ff;
    text-decoration: none;
    margin-top: 8px;
    font-size: 14px;
}

/* Bottom block */
.rt-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 28px;
    padding-top: 16px;
    text-align: center;
}

/* Small text (design note) */
.rt-design {
    display: block;
    margin-top: 4px;
    font-size: 14px;
    color: #6f849c;
}


/* =========================================================
   7. FOOTER POSITION CORRECTION (PATCH LAYER)
   ========================================================= */

/* Container reset */
#rt-new-footer {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Override spacing */
.rt-footer {
    margin-top: 20px !important;
    margin-bottom: 80px !important;
}

/* Inner spacing tuning */
.rt-footer-inner {
    padding-top: 18px !important;
    padding-bottom: 14px !important;
}

/* Bottom spacing tuning */
.rt-footer-bottom {
    margin-top: 12px !important;
    padding-top: 10px !important;
}


/* =========================================================
   8. RESPONSIVE (MOBILE)
   ========================================================= */

@media (max-width: 768px) {
    .rt-footer-grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .rt-footer-bottom {
        margin-top: 5px !important;
        padding-top: 5px !important;
        text-align: left;
    }
}


/* =========================================================
   9. TABS UI (NAVIGATION)
   ========================================================= */

.nav-tabs,
.nav-pills {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.nav-tabs .nav-link,
.nav-pills .nav-link {
    color: #7f96ad !important;
    background: transparent !important;
    border: none !important;
    font-weight: 500;
    letter-spacing: 0.2px;
    transition: color 0.18s ease, border-color 0.18s ease;
}

.nav-tabs .nav-link:hover,
.nav-pills .nav-link:hover {
    color: #e6edf5 !important;
}

.nav-tabs .nav-link.active,
.nav-pills .nav-link.active {
    color: #3aa7ff !important;
    background: transparent !important;
    border-bottom: 2px solid #3aa7ff !important;
}


/* =========================================================
   10. PLAY BUTTON UX
   ========================================================= */

/* Button base */
.songslist_play-button {
    width: 30px !important;
    height: 30px !important;
    border-radius: 50%;
    background: rgba(255,255,255,0.05) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s ease;
}

/* Hover (via track row) */
.playlist-tabbed_track:hover .songslist_play-button {
    background: #3aa7ff !important;
    transform: scale(1.15);
}

/* Icon */
.songslist_play-button svg {
    width: 12px;
    height: 12px;
}

.songslist_play-button svg path {
    fill: #ffffff !important;
}

/* Track number hover */
.playlist-tabbed_track:hover .songslist_sn {
    color: #3aa7ff !important;
}


/* =========================================================
   11. TRACK CARD UX
   ========================================================= */

/* Base card */
.playlist-tabbed_track {
    position: relative;
    border-radius: 10px;
    transition: box-shadow 0.18s ease, background 0.18s ease;
}

/* Hover */
.playlist-tabbed_track:hover {
    background: rgba(255,255,255,0.03) !important;
    box-shadow: 0 0 0 1px rgba(58, 167, 255, 0.35);
}

/* Left accent line */
.playlist-tabbed_track::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10%;
    width: 2px;
    height: 80%;
    background: transparent;
    border-radius: 2px;
    transition: all 0.18s ease;
}

.playlist-tabbed_track:hover::before {
    background: #3aa7ff;
    box-shadow: 0 0 10px rgba(58,167,255,0.6);
}

/*
/* =========================================================
   12. PLAYING STATE (CRITICAL UX)
   ========================================================= */

/* Active track */
.playlist-tabbed_track.rt-playing {
    background: rgba(58, 167, 255, 0.08) !important;
    box-shadow: inset 3px 0 0 #3aa7ff;
}

/* Active track text */
.playlist-tabbed_track.rt-playing .song_name a {
    color: #3aa7ff !important;
}

/* Active button */
.playlist-tabbed_track.rt-playing .songslist_play-button {
    background: #3aa7ff !important;
}

/* Active track number */
.playlist-tabbed_track.rt-playing .songslist_sn {
    color: #3aa7ff !important;
}

.playlist-tabbed_track .songslist_moreicon,
.playlist-tabbed_track .songslist_moreicon svg,
.playlist-tabbed_track .songslist_moreicon svg path {
    color: #7f96ad !important;
    fill: #7f96ad !important;
}
/* Favorite heart */
.ms_songslist_like {
    color: #7f96ad !important;
    transition: color 0.18s ease, transform 0.18s ease;
}

.ms_songslist_like:hover {
    color: #ff4d6d !important;
    transform: scale(1.12);
}

.ms_songslist_like svg path {
    fill: currentColor !important;
}