.custom-footer-link {
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.22s ease;
}

.custom-footer-link:hover {
    color: #ff4d4d !important;
}

#muz-player-wrapper {
    width: 100%;
    max-width: 1100px;
    margin: 34px auto 0 auto;
    position: relative;
    padding: 10px 16px 0 16px;
    background: transparent;
    text-align: center;
    color: #fff;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.player-cover-frame {
    padding: 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    backdrop-filter: blur(5px);
    display: inline-block;
    margin-bottom: 26px;
}

#player-cover {
    width: 320px;
    height: 320px;
    max-width: 78vw;
    max-height: 78vw;
    object-fit: cover;
    display: block;
    border-radius: 6px;
}

.player-bottom-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

#volume-slider {
    width: 100%;
    max-width: 1100px;
    height: 8px;
    border-radius: 4px;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    cursor: pointer;
    background: linear-gradient(to right, #d60000 75%, rgba(255,255,255,0.3) 75%);
}

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #d60000;
    border: 2px solid #ffffff;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0,0,0,0.7);
}

#volume-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #d60000;
    border: 2px solid #ffffff;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0,0,0,0.7);
}

.track-title-responsive {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 4px;
    width: 100%;
    font-family: 'Inter', sans-serif;
}

.player-title-line {
    font-size: clamp(16px, 2.4vw, 22px);
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.85);
    word-break: break-word;
}

.player-artist-line {
    font-size: clamp(13px, 1.8vw, 16px);
    font-weight: 400;
    color: #ffffff;
    line-height: 1.2;
    opacity: 0.9;
    text-shadow: 0 1px 5px rgba(0,0,0,0.85);
    word-break: break-word;
}

.track-title-responsive a {
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    color: inherit !important;
}

.track-title-responsive a:hover .player-title-line {
    opacity: 0.9;
}

.team-link {
    color: #ff4d4d !important;
    text-decoration: underline !important;
    font-weight: 700 !important;
    transition: opacity 0.2s ease;
}

.team-link:hover {
    opacity: 0.8;
}

.history-section-wrap {
    max-width: 900px;
    margin: 34px auto 0;
    padding: 0 16px;
    text-align: center;
}

.history-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
    box-sizing: border-box;
    width: 100%;
}

.history-card {
    display: flex;
    align-items: center;
    background: rgba(3, 22, 43, 0.82);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 12px 18px;
    transition: transform 0.2s ease, background-color 0.22s ease;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}

.history-card:hover {
    transform: translateY(-2px);
    background: rgba(11, 37, 69, 0.92);
}

.history-cover {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
    flex-shrink: 0;
}

.history-info {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 15px;
}

.history-song {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 4px 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-song a,
.history-card:has(.team-link) .history-song,
.history-card:has(img[src*="xpand"]) .history-song,
.history-card:has(img[src*="city"]) .history-song {
    color: #ff4d4d !important;
}

.history-artist {
    color: #ffffff;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-meta {
    color: #ff4d4d;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    margin-left: auto;
    flex-shrink: 0;
    white-space: nowrap;
}

.history-tab-btn {
    padding: 10px 20px;
    border-radius: 10px;
    border: none;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    transition: background-color 0.22s ease, color 0.22s ease;
}

.history-tab-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.history-tab-btn.is-active {
    background: #d60000;
    color: #ffffff;
}

.muz-promo-section {
    position: relative;
    z-index: 2;
    padding: 34px 15px 44px 15px;
    text-align: center;
    background: transparent;
}

.muz-promo-container {
    max-width: 900px;
    margin: 0 auto;
}

.muz-app-title {
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.muz-apps-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.muz-app-btn img {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.muz-app-btn:hover img {
    transform: scale(1.05);
}

.muz-calc-wrapper {
    margin-bottom: 18px;
}

.muz-calc-btn {
    display: inline-block;
    background: linear-gradient(135deg, #910a0a, #d60000);
    color: #ffffff !important;
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none !important;
    padding: 15px 30px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(179, 0, 0, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.muz-calc-btn:hover {
    background: linear-gradient(135deg, #d60000, #ff2a2a);
    box-shadow: 0 10px 26px rgba(214, 0, 0, 0.65);
    transform: translateY(-2px);
}

.calc-btn-l1,
.calc-btn-l2 {
    display: inline;
}

.muz-promo-text {
    color: #ffffff;
    font-size: 0.95rem;
    margin: 0 auto;
    max-width: 650px;
    line-height: 1.4;
}

@media (max-width: 600px) {
    #player-cover {
        width: 220px !important;
        height: 220px !important;
    }
    .player-bottom-bar {
        padding: 0 5px !important;
    }
}

@media (max-width: 768px) {
    #muz-player-wrapper {
        margin-top: 22px;
    }
    .history-title-mobile {
        font-size: 1.05rem !important;
        letter-spacing: 0.5px !important;
    }
    .history-card { padding: 10px 12px; }
    .history-cover { width: 52px; height: 52px; margin-right: 12px; }
    .history-info { padding-right: 5px; }
    .history-song { font-size: 0.92rem; margin-bottom: 2px; }
    .history-artist { font-size: 0.82rem; }
    .history-meta { font-size: 0.75rem; }
    .muz-app-title { font-size: 1.1rem; }
    .muz-apps-row { gap: 12px; }
    .muz-app-btn img { height: 40px; }
    .muz-calc-btn {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        line-height: 1.25;
        font-size: 0.96rem;
        padding: 13px 18px;
        width: 92%;
        max-width: 360px;
        box-sizing: border-box;
    }
    .calc-btn-l1 {
        display: block;
        font-weight: 800;
    }
    .calc-btn-l2 {
        display: block;
        font-size: 0.86rem;
        font-weight: 600;
        text-transform: none;
        opacity: 0.94;
    }
    .muz-promo-text { font-size: 0.85rem; padding: 0 10px; }
}