/* =========================================================
   PART 1: VARIABLES & RESET
   ========================================================= */
:root {
    --primary: #4f46e5;
    --secondary: #ec4899;
    --bg-color: #f3f4f6;
    --card-bg: #ffffff;
    --text-main: #1f2937;
    --text-muted: #6b7280;
}

body { color: #000; font-family: verdana, "Comic Sans MS", Helvetica, sans-serif; margin: 0; padding: 0; font-size: small; line-height: 20px; background-color:#e5e7eb; }
body * { margin: 0; }
body, td { margin: 0; padding: 0; font-size: small; }
:link img, :visited img, a img { border: none; }
a { text-decoration: none; color: #124373; padding: 5px; }
b, .bold { font-weight: 700; }
input, select { padding: 2px 10px; margin: 1px; border-radius: 5px; border: none; background: #fff; }
textarea { font-size: small; }

/* Utilities */
.left { text-align: left; }
.center, .tCenter { text-align: center; }
.right { text-align: right; }
.white { color: #fff; }
.black { color: #000; }
.green { color: #008000; }
.red { color: red; }

/* =========================================================
   PART 2: LEGACY HEADERS & LOGO (Modernized)
   ========================================================= */
.logo { 
    background: linear-gradient(135deg, #081623, #245586, #3979b9); 
    color: #fff; 
    padding: 15px 20px; 
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-bottom: 3px solid #1b91d8;
    border-radius: 0 0 20px 20px; 
    position: relative;
    overflow: hidden;
}
.logo::before {
    content: '';
    position: absolute;
    top: 0; 
    left: -100%;
    width: 50%; 
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: shine 4s infinite;
}
@keyframes shine {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}
.logo a { 
    color: #ffffff; 
    font-weight: 800; 
    font-size: 24px;
    text-decoration: none;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
    display: inline-block;
    transition: all 0.3s ease;
}
.logo a:hover {
    color: #ffeb3b; 
    transform: scale(1.05); 
    text-shadow: 0 4px 15px rgba(255, 235, 59, 0.5);
}

h1, h2, h3 { 
    background: linear-gradient(135deg, #1b91d8, #0ea5e9); 
    color: #fff; 
    text-align: center; 
    font-size: 115%; 
    padding: 10px; 
    position: relative;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(27, 145, 216, 0.2);
    margin-bottom: 15px;
}
h2 a { color: #fff; }
h3 { text-align: left; }
.h2Title { background: #000; display: inline-block; width: 100%; font-size: 16px; padding: 7px; color: #fff; box-sizing: border-box; font-weight: 400; position: relative; }
.more { padding: 7px 14px; background: #f1b201; position: absolute; right: 0; top: 0; font-size: 12px; cursor: pointer; font-weight: 700; }
.more a { color: #000ba1; }
.more::before { content: ''; position: absolute; border-top: 17px solid transparent; border-bottom: 16px solid transparent; border-right: 10px solid #f1b201; left: -10px; top: 0; }

/* =========================================================
   PART 3: OLD LEGACY LISTS & ELEMENTS (Do not break layout)
   ========================================================= */
.catRow, .catRowHome { background-color: #fafafd; border-top: 1px solid #fff9f9; border-bottom: 1px solid #eee; margin: 1px 0; font-weight: 700; padding: 1px; }
.catRow a, .catRowHome a { display: block; font-weight: 700; padding: 9px; }
.catRow:hover, .catRowHome:hover { background-color: #f5f5f5; text-decoration: underline; }
.catRow img { vertical-align: middle; box-shadow: 0 0 2px #999; display: inline-block; padding: 1px; border: 1px solid #999; margin-right: 5px; }
.catRow a div { vertical-align: middle; display: table-cell; }
.catRow a div span, .catRowHome a div span { font-size: x-small; color: #006700; font-weight: 400; }
.catRow span.ar { color: #0d00ce; font-style: italic; }

.fl { border-bottom: 1px solid #ddd; }
.fl a { display: block; }
.fl a img { border: 1px solid #bbb; padding: 1px; margin-right: 5px; box-shadow: 0 0 1px #999; }
.fl a div div { vertical-align: middle; display: table-cell; }
.fl:hover { background: #f5f5f5; }
.fl span { color: #000; font-weight: 400; }
.fileThumb, .flName { display: table-cell; vertical-align: middle; padding: 2px; }
.flName { font-weight: 700; color: #124373; }
.flLink { padding: 4px; }
.fileName { font-weight: 700; padding: 7px; }
.fileName span { color: #555; text-decoration: none; }
.fileName:hover { text-decoration: underline; }
.fileName span.ar { color: #6700ef; font-style: italic; }
.fileName span.alb { color: #00a569; font-style: italic; }

.upd { border-bottom: 1px solid #ddd; font-size: 12px; padding: 6px 2px; cursor: pointer; }
.upd a { display: inline-block; padding: 3px; }
.upd a img { border: 1px solid #bbb; padding: 1px; margin-right: 5px; box-shadow: 0 0 1px #999; }
.upd a div div { vertical-align: middle; display: table-cell; }
.upd:hover { background: #f5f5f5; }
.upd:nth-of-type(even) { background: #f2f2f2; color: #ee4ad9; }
.ftype { font-size: 9px; padding: 1px 4px; background: #000; color: #fff; border-radius: 4px; display: inline-block; line-height: 10px; }
.trending { background: darkblue; padding: 1px 4px; font-size: 9px; font-weight: bold; color: #fff; margin: 0px 5px; border-radius: 4px; display: inline-block; line-height: 10px; }

.table-bordered { border-collapse: collapse; width: 100%; margin: 8px auto 5px; font-size: 11px !important; background-color: #fff; border-radius: 6px; box-shadow: 0 0 0 1px #dedede; }
.table-bordered tr { border-bottom: 1px solid #dedede; }
.table-bordered tr:hover { background-color: #f5f5f5; }
.table-bordered td, .table-bordered th { padding: 6px; }
.write-form { border: 2px outset #ccc; margin: 0 7px; padding: 5px 17px 5px 5px; box-shadow: 3px 4px 7px 0 #776969; background: rgba(0,0,0,.04); border-radius: 19px; }

.fshow { position: relative; padding: 3px; background: #fff; border: 0 solid #eee; text-align: center; }
.description { background: #f5f5f5; color: #222; padding: 5px; text-align: center; }
.dtype { border-bottom: 1px solid #eee; font-size: 12px; padding: 5px; text-align: center; }
.path { padding: 2px; margin: 1px 0; border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; background: #f4f0e9; font-weight: 700; }
.absmiddle { padding: 0; border: 0 solid #999; vertical-align: middle; }
.even { background: #fff; vertical-align: middle; }
.odd { vertical-align: middle; }
.randomFile h3 { text-align: left; }

.dwnLink { font-weight: 700; }
.downLink a { margin: 0; background: #0054bb; border-radius: 10px; color: #fff; padding: 5px 33px; text-shadow: 1px 1px 1px #333; font-size: 120%; display: inline-block; }
.dwnLink1, .dwnLink2, .dwnLink3, .dwnLink4, .dwnLink5 { font-weight: 700; border-radius: 10px; box-shadow: 1px 1px 0 #555; color: #fff; display: inline-block; margin: 1px; padding: 2px; text-shadow: 1px 1px 0 #000; width: 250px; }
.dwnLink1 { background: #22588e; } .dwnLink2 { background: #f400a9; } .dwnLink3 { background: #008aff; } .dwnLink4 { background: #990078; } .dwnLink5 { background: #c0f; }

.pgn { background: #f4f0e9; border-bottom: 1px solid #ddd; border-top: 1px solid #ddd; padding: 0; text-align: center; }
.pgn form { padding-top: 5px; }
.pgn input { padding: 10px; text-align: center; margin: 10px 3px; border: 1px solid #ccc; }
.pgn a, .pgn span { padding: 5px; margin: 0 5px; font-weight: 700; border-radius: 5px; min-width: 22px; height: 22px; line-height: 22px; display: inline-block; border: 1px solid #ccc; }
.pgn a { background: #f5f5f5; }
.pgn a:hover, .pgn span { background: #fbe86e; color: #777; }

.showimage { padding: 2px; text-align: center; position: relative; display: table; margin: 6px auto 4px; justify-content: center; align-items: center; border-radius: 1px; }
.showimage img { vertical-align: middle; box-shadow: 8px 8px 12px 0px #848181; }
audio { text-align: center; height: 30px; border-radius: 25px; outline: none; margin: 5px 0px; width: 88%; max-width: 300px; }

/* Colors x1-x20, bg1-bg20 */
.x1{color:#2f4f4f} .x2{color:purple} .x3{color:#c74388} .x4{color:#007796} .x5{color:#088a08} .x6{color:#3b5998} .x7{color:#557100} .x8{color:#de0000} .x9{color:#922b21} .x10{color:#004fc5} .x11{color:#ca483a} .x12{color:#00f} .x13{color:#9f009f} .x14{color:#e01a74} .x15{color:#008000} .x16{color:#29796d} .x17{color:#900078} .x18{color:#00847f} .x19{color:#960396} .x20{color:#df0174}
.bg1{background:#2f4f4f} .bg2{background:#b207b2} .bg3{background:#c74388} .bg4{background:#007796} .bg5{background:#088a08} .bg6{background:#3b5998} .bg7{background:#557100} .bg8{background:#de0000} .bg9{background:#922b21} .bg10{background:#004fc5} .bg11{background:#ca483a} .bg12{background:#00f} .bg13{background:#c500c5} .bg14{background:#e01a74} .bg15{background:#008200} .bg16{background:#29796d} .bg17{background:#900078} .bg18{background:#00847f} .bg19{background:#960396} .bg20{background:#df0174}

/* =========================================================
   PART 4: MODERN UI (App-like layout & components)
   ========================================================= */
.app-wrapper, .category-page-wrapper, .file-details-container { max-width: 600px; margin: 0 auto; background-color: var(--bg-color); box-shadow: 0 0 15px rgba(0,0,0,0.1); min-height: 100vh; }
.la-card, .folder-card { display: flex; align-items: center; padding: 12px 15px; border-bottom: 1px solid #f1f1f1; background: #fff; transition: all 0.2s ease; text-decoration: none; }
.la-card:hover, .folder-card:hover { background: #f9fbfd; transform: translateX(3px); }
.la-img-box, .folder-icon { flex: 0 0 55px; height: 55px; margin-right: 15px; border-radius: 6px; display: flex; align-items: center; justify-content: center; position: relative; }
.la-thumb { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; border: 1px solid #eee; }
.la-info, .folder-info { flex: 1; overflow: hidden; }
.la-title, .folder-name { font-size: 14px; font-weight: 600; color: #333; margin: 0 0 4px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.la-meta { font-size: 11px; color: #777; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* Grid Layouts */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; padding: 10px; }
.dashboard-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 15px 10px; background: #fff; border-radius: 0 0 8px 8px; }
.dash-card { display: flex; flex-direction: column; align-items: center; justify-content: center; background: #fcfcfc; border: 1px solid #f0f0f0; border-radius: 8px; padding: 15px 5px; transition: 0.3s; }
.dash-card:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); border-color: #1b91d8; }
.artist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 15px; padding: 15px; }
.artist-card { display: flex; flex-direction: column; align-items: center; background: #fff; padding: 15px 10px; border-radius: 10px; border: 1px solid #eee; transition: 0.3s; }
.artist-card:hover { transform: translateY(-5px); box-shadow: 0 8px 15px rgba(0,0,0,0.1); border-color: var(--primary); }

/* Download Buttons */
.dwn-btn { display: block; width: 90%; margin: 10px auto; padding: 12px 15px; text-align: center; color: #ffffff !important; font-weight: bold; font-size: 14px; border-radius: 8px; box-shadow: 0 3px 6px rgba(0,0,0,0.3); transition: 0.2s; text-decoration: none; }
.dwn-btn:hover { transform: translateY(-2px); }
.dwn-high { background: linear-gradient(135deg, #10b981, #059669); }
.dwn-med { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.dwn-low { background: linear-gradient(135deg, #f59e0b, #d97706); }
.dwn-default { background: linear-gradient(to right, #1b91d8, #00d2ff); }

/* Sorting & Badges */
.sort-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; }
.sort-btn { padding: 5px 12px; background: #fff; border: 1px solid #ccc; border-radius: 15px; font-size: 12px; color: #333; transition: 0.3s; }
.sort-btn.active, .sort-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* A-Z Scroll */
.az-wrapper { background: #fff; padding: 10px; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); border-bottom: 2px solid var(--primary); }
.az-scroll { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 8px; padding-bottom: 5px; }
.az-btn { padding: 8px 15px; background: #f1f1f1; border-radius: 6px; font-weight: bold; color: #333; min-width: 35px; text-align: center; flex-shrink: 0; }
.az-btn.active, .az-btn:hover { background: var(--primary); color: #fff; }

/* Jump Page Modern */
.jump-form { text-align: center; padding: 15px; background: #fff; border-top: 1px solid #eee; }
.jump-input { padding: 6px; width: 50px; text-align: center; border: 1px solid var(--primary); border-radius: 4px; font-weight: bold; }
.jump-btn { padding: 6px 15px; background: var(--primary); color: #fff; border: none; border-radius: 4px; cursor: pointer; font-weight: bold; }

/* Font Awesome Reset */
.fa { display: inline-block !important; font: normal normal normal 14px/1 FontAwesome !important; font-size: inherit !important; text-rendering: auto !important; -webkit-font-smoothing: antialiased !important; }

/* =========================================================
   PART 5: MODERN AUDIO PLAYER
   ========================================================= */
.audio-player-wrapper { background: #ffffff; padding: 20px; border-radius: 15px; box-shadow: 0 8px 20px rgba(0,0,0,0.06); margin: 20px auto; text-align: center; border: 1px solid #e2e8f0; max-width: 500px; }
.custom-audio { width: 100%; height: 45px; outline: none; margin-bottom: 15px; border-radius: 30px; }
.player-controls { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.remotePlayer { border: none; padding: 10px 18px; border-radius: 30px; font-weight: 700; font-size: 13px; cursor: pointer; transition: all 0.3s ease; display: inline-flex; align-items: center; gap: 6px; color: #fff; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.remotePlayer:hover { transform: translateY(-3px); box-shadow: 0 6px 15px rgba(0,0,0,0.15); }
.remotePlayer:hover i { transform: scale(1.1); }
.btn-play { background: linear-gradient(135deg, #10b981, #059669); }
.btn-pause { background: linear-gradient(135deg, #ef4444, #dc2626); }
.btn-vol { background: linear-gradient(135deg, #3b82f6, #2563eb); }

/* =========================================================
   PART 6: LATEST UPDATES (FLAT BLUE HEADER & MODERN CARDS)
   ========================================================= */
.section-wrapper { max-width: 600px; margin: 0 auto 20px auto; background: white; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); overflow: hidden; font-family: 'Segoe UI', system-ui, sans-serif; }

/* Flat Blue Header (Image Style) */
.updates-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 15px; background-color: #2a5a8c; border-radius: 2px; }
.updates-title { font-size: 18px; margin: 0; font-weight: 900; color: #161e27 !important; display: flex; align-items: center; gap: 8px; font-family: Arial, Helvetica, sans-serif; background: transparent; padding: 0; box-shadow: none; border-radius: 0; }
.updates-title i { color: #161e27 !important; font-size: 20px; }
.header-more-btn { background: #161e27; color: #ffffff !important; font-weight: bold; padding: 5px 12px; border-radius: 4px; text-decoration: none; font-size: 12px; transition: 0.3s; }
.header-more-btn:hover { background: #ffffff; color: #2a5a8c !important; }

/* Blog Text Announcements */
.blog-list-block { background: #f8fafc; border-bottom: 2px solid #f1f5f9; }
.blog-item { display: flex; align-items: center; padding: 12px 15px; border-bottom: 1px solid #e2e8f0; gap: 12px; }
.blog-item:last-child { border-bottom: none; }
.blog-icon { font-size: 18px; }
.blog-text { font-weight: 600; color: #ef4444; font-size: 13.5px; line-height: 1.5; }

/* File Update Cards */
.update-card { display: flex; align-items: center; padding: 15px; border-bottom: 1px solid #f1f5f9; text-decoration: none; transition: all 0.3s ease; gap: 15px; background: #fff; }
.update-card:hover { background: #f8fafc; transform: translateX(5px); border-left: 3px solid #2a5a8c; }
.update-img-box { width: 55px; height: 55px; flex-shrink: 0; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.08); background: #eef2ff; position: relative; }
.update-thumb { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.update-card:hover .update-thumb { transform: scale(1.15); }

/* Details inside Update Card */
.update-info { flex-grow: 1; overflow: hidden; }
.u-title { font-size: 15px; font-weight: 700; color: #1e293b; margin: 0 0 5px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.u-meta { font-size: 12px; color: #64748b; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.u-folder { color: #1b91d8; font-weight: 600; }
.u-artist { color: #475569; }
.u-tags { font-size: 10.5px; color: #94a3b8; margin-top: 6px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.badge-video { background: #e0f2fe; color: #0284c7; padding: 2px 6px; border-radius: 4px; font-weight: bold; }
.badge-trend { background: #fef08a; color: #a16207; padding: 2px 6px; border-radius: 4px; font-weight: bold; }

/* For PC / Large Screens (Show 2 Category items side by side neatly) */
@media (min-width: 768px) {
    .category-grid { display: grid !important; grid-template-columns: 1fr 1fr !important; padding: 0 !important; gap: 0 !important; background: white !important; }
    .folder-card { padding: 12px 15px !important; border-bottom: 1px solid #f1f5f9 !important; border-radius: 0 !important; margin: 0 !important; }
    .folder-card:nth-child(odd) { border-right: 1px solid #f1f5f9 !important; }
}