/* =========================================
   1. ROOT VARIABLES & GLOBAL STYLES
   ========================================= */
:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-light: #e2e8f0;
    --border-color: #e2e8f0;
    --radius: 12px;
    --radius-xl: 12px;
    --shadow-subtle: 0 2px 6px rgba(0, 0, 0, 0.02);
}

body {
    color: var(--text-main);
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    background: var(--bg-main);
    line-height: 1.4;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a, a:link, a:active, a:visited {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover, a:focus {
    color: var(--primary-hover);
}

img {
    max-width: 100%;
    height: auto;
}

b { 
    font-weight: 600;
}


/* =========================================
   2. HEADINGS & TITLES
   ========================================= */
h1 {
    text-align: left;
    background: linear-gradient(135deg, #4f46e5, #06b6d4);
    color: #fff;
    margin: 12px 16px;
    font-size: 16px;
    padding: 12px 16px;
    font-weight: 700;
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

h2, .section-title {
    text-align: left;
    padding: 12px 16px;
    background: #eef2ff;
    border-left: 4px solid var(--primary);
    font-weight: 600;
    color: var(--primary);
    margin: 16px 16px 8px 16px;
    font-size: 15px;
    border-radius: 0 8px 8px 0;
}

h3, h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    margin: 6px 16px !important;
    padding: 0 !important;
    line-height: 1.4;
}

.description {
    padding: 14px 16px !important;
    background: var(--card-bg);
    font-size: 14px;
    color: var(--text-muted);
    margin: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
}


/* =========================================
   3. HEADER & SEARCH BAR
   ========================================= */
.tophead {
    background: #0f172a;
    padding: 14px 20px;
    border-bottom: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: white;
    font-weight: 600;
}

.tophead img {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.searchwrap {
    width: 92%;
    max-width: 600px;
    margin: 14px auto;
}

.searchbar {
    width: 100%;
    display: flex;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    overflow: hidden;
}

.searchTerm {
    width: 100%;
    border: none;
    padding: 12px 16px;
    font-size: 14px;
    outline: none;
    background: transparent;
    color: var(--text-main);
}

.searchButton {
    border: none;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    width: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jattsearch {
    background-image: url("data:image/svg+xml,<svg viewBox='0 0 22 22' fill='white' xmlns='http://www.w3.org/2000/svg'><path d='M18.677 19.607l-5.715-5.716a6 6 0 0 1-7.719-9.133a6 6 0 0 1 9.134 7.718l5.715 5.716l-1.414 1.414l-.001.001zM9.485 5a4 4 0 1 0 2.917 1.264l.605.6l-.682-.68l-.012-.012A3.972 3.972 0 0 0 9.485 5z'/></svg>");
    width: 24px;
    height: 24px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}


/* =========================================
   4. BREADCRUMBS
   ========================================= */
div.breadcrumbs {
    background: var(--card-bg);
    margin: 12px 16px;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-size: 13.5px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

div.breadcrumbs a {
    color: var(--primary);
    font-weight: 600;
}


/* =========================================
   5. ALBUM COVER & META DETAILS
   ========================================= */
.album-flex-box {
    background: var(--bg-card);
    margin: 0 16px 16px 16px;
    padding: 22px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-subtle);
    display: flex;
    align-items: center;
    gap: 24px;
    box-sizing: border-box;
    overflow: hidden;
}

.album-cover-box {
    flex-shrink: 0;
    width: 210px;
    height: 210px;
}

.album-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid var(--border-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    display: block;
}

.album-info-box {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    min-width: 0;
    max-width: 650px;
}

.sideitem {
    border: 0;
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sideitem b {
    color: var(--text-main);
    font-weight: 600;
}

.sideitem a {
    color: var(--primary);
    text-decoration: none !important;
    font-weight: 500;
    transition: color 0.2s ease;
}

.sideitem a:hover {
    color: var(--primary-hover) !important;
}


/* =========================================
   6. DOWNLOAD LINKS & BUTTONS
   ========================================= */
a.riskyjatt, div.riskyjatt {
    background: var(--card-bg);
    margin: 6px 16px;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    font-weight: 600;
    color: var(--text-main);
    display: block;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

a.riskyjatt:hover {
    background: #f1f5f9;
    border-color: var(--primary);
    color: var(--primary-hover);
}


/* =========================================
   7. AUDIO PLAYER & SOCIAL ICON BAR
   ========================================= */
audio {
    width: calc(100% - 32px) !important;
    margin: 12px 16px !important;
    display: block;
    border-radius: 30px;
    outline: none;
}

.icon-bar {
    margin: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
    align-items: center;
}

.icon-bar a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: white;
    font-size: 18px;
    border-radius: 50%;
    transition: transform 0.2s, box-shadow 0.2s;
}

.icon-bar a:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.facebook { background: #1877f2; }
.twitter { background: #000000; }
.qrcode { background: #334155; }
.whatsapp { background: #25d366; }
.envelope { background: #64748b; }
.email { background: #ea4335; }

.icon-bar input[type="text"] {
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 6px;
    background: var(--bg-main);
    color: var(--text-main);
    width: 100%;
    max-width: 280px;
    outline: none;
    font-size: 13px;
}


/* =========================================
   8. MODERN CATEGORY CARDS
   ========================================= */
.music-category-card {
    background: var(--card-bg, #ffffff) !important;
    margin: 12px 16px !important;
    padding: 14px 18px !important;
    border-radius: var(--radius, 12px) !important;
    border: 1px solid var(--border-color, #e2e8f0) !important;
    font-size: 14.5px !important;
    line-height: 2.4 !important;
    text-align: left !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
}

.music-category-card a {
    display: inline-block !important;
    color: var(--text-main, #1e293b) !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    padding: 2px 8px !important;
    margin: 2px 4px !important;
    background: var(--bg-main, #f8fafc) !important;
    border: 1px solid var(--border-color, #e2e8f0) !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.music-category-card a:hover {
    background: var(--primary, #4f46e5) !important;
    color: #ffffff !important;
    border-color: var(--primary, #4f46e5) !important;
    transform: translateY(-1px) !important;
}


/* =========================================
   9. MUSIC PAGINATION DESIGN
   ========================================= */
.music-pagination {
    clear: both !important;
    background: #ffffff !important;
    margin: 12px 16px !important;
    padding: 14px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    text-align: center !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02) !important;
    font-family: inherit !important;
}

.music-pagination .nav-row {
    display: flex !important;
    gap: 10px !important;
    margin-bottom: 12px !important;
}

.music-pagination .nav-btn {
    flex: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f8fafc !important;
    color: #1e293b !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    padding: 9px 14px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.music-pagination .nav-btn:hover {
    background: #4f46e5 !important;
    color: #ffffff !important;
    border-color: #4f46e5 !important;
}

.music-pagination .jump-row {
    border-top: 1px solid #f1f5f9 !important;
    padding-top: 10px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 6px !important;
}

.music-pagination .page-text {
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
}

.music-pagination form {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    margin: 0 !important;
}

.music-pagination input[type="text"],
.music-pagination input[type="submit"] {
    height: 32px !important;
    box-sizing: border-box !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    font-size: 13.5px !important;
    font-family: inherit !important;
    outline: none !important;
    transition: all 0.2s ease !important;
}

.music-pagination input[type="text"] {
    width: 60px !important;
    padding: 0 6px !important;
    background: #ffffff !important;
    text-align: center !important;
    color: #1e293b !important;
}

.music-pagination input[type="text"]:focus {
    border-color: #4f46e5 !important;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1) !important;
}

.music-pagination input[type="submit"] {
    background: #f8fafc !important;
    color: #1e293b !important;
    padding: 0 12px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
}

.music-pagination input[type="submit"]:hover {
    background: #4f46e5 !important;
    color: #ffffff !important;
    border-color: #4f46e5 !important;
}


/* =========================================
   10. MODERN MUSIC TRACK LISTING DESIGN
   ========================================= */
a.music-track-card {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    background: #ffffff !important;
    margin: 6px 12px !important;
    padding: 10px 12px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.2s ease !important;
    min-height: 80px !important;
    box-sizing: border-box !important;
}

a.music-track-card:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04) !important;
}

a.music-track-card img.albumcover {
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    max-width: 60px !important;
    border-radius: 8px !important;
    object-fit: cover !important;
    border: 1px solid #f1f5f9 !important;
}

a.music-track-card .tracks {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 3px !important;
    flex: 1 !important;
    overflow: hidden !important;
    min-height: 60px !important;
}

a.music-track-card .tracks .track-title {
    font-size: 14.5px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

a.music-track-card .tracks .track-artist {
    color: #339900 !important;
    font-size: 11.5px !important;
    font-weight: 500 !important;
    margin: 0 !important;
    display: block !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

a.music-track-card .tracks .icons-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-top: 2px !important;
}

a.music-track-card .tracks .icons-wrap img {
    height: 19px !important;
    width: auto !important;
    max-width: 24px !important;
    vertical-align: middle !important;
    opacity: 0.95 !important;
    transition: opacity 0.15s ease !important;
}

a.music-track-card .tracks .icons-wrap img:hover {
    opacity: 1 !important;
}

/* =========================================
   11. RINGTONE CUTTER SECTION CLASSES
   ========================================= */
.ui-slider-horizontal .ui-slider-range {
    background: var(--primary); /* Matched with your theme color */
}

#slider-range span {
    border-radius: 50%;
    cursor: pointer;
}

#slider-range {
    margin: 5px 0;
    border-radius: 10px;
}

/* New rounded cutter box design */
.cutter {
    width: 100%; 
    margin: 12px 0; 
    padding: 14px 16px; 
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: var(--radius, 12px); 
    box-shadow: 0 1px 3px rgba(0,0,0,0.02); 
    box-sizing: border-box;
}

/* Input boxes inside the cutter */
.cutter input {
    width: 49%;
    padding: 5px 0;
    background: transparent;
    border: none;
    outline: none;
}

.rj-audio-wrap { 
    padding: 0 16px; 
}

.rj-audio-box { 
    width: 100%; 
    margin-top: 7px; 
}

.rj-instructions { 
    padding: 5px 16px; 
}

.rj-cutter-box { 
    padding: 0 16px; 
}

/* Red color removed and replaced with primary theme color */
.rj-input-left { 
    border: 0; 
    color: var(--primary); 
    font-weight: 700; 
    font-size: 14px;
    background: transparent;
    outline: none;
}

.rj-input-right { 
    border: 0; 
    color: var(--primary); 
    font-weight: 700; 
    font-size: 14px;
    text-align: right; 
    background: transparent;
    outline: none;
}

.rj-controls { 
    padding: 5px 16px; 
}

.rj-controls p label, 
.rj-controls p span {
    font-weight: bold;
    font-size: 14px;
    color: #1e293b;
}

/* Button colors updated according to the theme */
.rj-get-btn { 
    height: 25px; 
    width: 60px; 
    background: var(--primary); 
    color: #fff; 
    border: none; 
    cursor: pointer; 
    border-radius: 4px;
}

.rj-submit-btn { 
    height: 30px; 
    width: 120px; 
    font-size: 13px; 
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 4px;
}
/* =========================================
   12. FOOTER & MISC
   ========================================= */
.home-link-wrap {
    text-align: left;
    margin: 16px;
}

.home-link-wrap a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.footer {
    background: #0f172a;
    color: #94a3b8;
    text-align: center;
    padding: 24px 16px;
    font-size: 14px;
    margin-top: 30px;
    border-top: 1px solid var(--border-light);
}

.footer a {
    color: #cbd5e1 !important;
    text-decoration: none;
    font-weight: 500;
}

.copyright {
    text-align: center;
    background: #090d16;
    color: #64748b;
    font-size: 13px;
    padding: 16px;
    font-weight: 500;
}

img.ribbon {
    position: fixed;
    z-index: 1;
    top: 0;
    right: 0;
    border: 0;
    cursor: pointer;
}


/* =========================================
   13. MEDIA QUERIES (RESPONSIVE)
   ========================================= */
@media screen and (max-width: 600px) {
    .music-category-card {
        margin: 8px 10px !important;
        padding: 12px 14px !important;
        line-height: 2.6 !important;
    }
    .music-category-card a {
        font-size: 13.5px !important;
        padding: 4px 8px !important;
    }
}

@media (max-width: 768px) {
    .album-flex-box {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 16px !important;
        padding: 18px !important;
    }
    
    .album-cover-box {
        width: 100% !important;
        height: 160px !important;
        display: flex !important;
        justify-content: center !important;
    }
    
    .album-cover-box img {
        width: 160px !important;
        max-width: 160px !important;
        height: 160px !important;
    }
    
    .album-info-box {
        width: 100% !important;
        text-align: center !important;
        max-width: 100% !important;
    }

    .sideitem {
        white-space: normal !important;
        font-size: 13px;
    }
}
.title-bar {
    text-align: left;
    padding: 12px 16px;
    background: #eef2ff;
    border-left: 4px solid var(--primary);
    font-weight: 600;
    color: var(--primary);
    margin: 16px 16px 8px 16px;
    font-size: 15px;
    border-radius: 0 8px 8px 0;
}