/* =========================================================
   BiharMasti / kannadawap.com Ultra-Modern Royal Blue Theme
   ========================================================= */

:root {
    --primary-blue: #2563eb;
    --dark-blue: #1e3a8a;
    --light-blue: #3b82f6;
    --soft-bg: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --accent-green: #059669;
    --accent-red: #ef4444;
    --border-light: #e2e8f0;
}

body {
    color: var(--text-main);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0 12px;
    background-color: var(--soft-bg);
    min-height: 100vh;
    font-size: 14px;
    line-height: 1.5;
}

body * {
    margin: 0;
}

body, td {
    margin: 0;
    padding: 0;
    font-size: 14px;
}

a img, :link img, :visited img {
    border: none;
}

a {
    text-decoration: none;
    color: var(--primary-blue);
    padding: 2px 4px;
    transition: all 0.15s ease;
}

a:hover {
    text-decoration: none;
    color: #1d4ed8;
}

b, .bold {
    font-weight: 600;
}

input, select {
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    outline: none;
    font-size: 14px;
    background: #ffffff;
}

textarea {
    font-size: 14px;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    outline: none;
    width: 90%;
}

.tCenter {
    text-align: center;
}

/* Header & Logo */
.logo {
    background: #ffffff;
    color: var(--text-main);
    padding: 16px 10px;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.logo a {
    color: var(--dark-blue);
    font-weight: 800;
    font-size: 26px;
    letter-spacing: -0.5px;
    padding: 0;
}

.logo img {
    max-width: 240px;
    height: auto;
}

/* Search Box */
.search {
    background: #f1f5f9;
    padding: 12px 10px;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
}

.search input[type="text"], .search input[type="search"] {
    width: 65%;
    max-width: 360px;
    padding: 9px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    font-size: 14px;
    outline: none;
    background: #ffffff;
    color: #1f2937;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.search input[type="submit"] {
    margin-left: 6px;
    padding: 9px 20px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--light-blue), var(--primary-blue));
    color: #ffffff;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
    transition: all 0.15s ease;
}

.search input[type="submit"]:hover {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    transform: translateY(-1px);
}

hr {
    background-color: var(--border-light);
    border: none medium;
    height: 1px;
    margin: 8px 0;
    padding: 0;
}

/* Section Headings */
h1, h2, h3 {
    background: linear-gradient(135deg, var(--dark-blue), var(--primary-blue));
    color: #ffffff;
    text-align: left;
    font-size: 15px;
    font-weight: 700;
    margin-top: 14px;
    border-radius: 6px;
    padding: 10px 14px;
    text-shadow: none;
    border: none;
    box-shadow: 0 2px 6px rgba(30, 58, 138, 0.15);
}

h2 a, h1 a, h3 a {
    color: #ffffff;
}

/* Announcement / Notice Box */
.list2, .bkmk1 {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--accent-red);
    padding: 12px 16px;
    margin: 10px 0;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

/* Category & Updates Card Style */
.catRow, .catRowHome, .more {
    background: #ffffff;
    border-bottom: 1px solid var(--border-light);
    margin-top: 0;
    font-weight: 600;
    transition: all 0.15s ease;
}

.catRow:hover, .catRowHome:hover, .more:hover {
    background: var(--soft-bg);
}

.catRow a, .catRowHome a, .more a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    color: var(--primary-blue);
    font-size: 14px;
}

.catRow a > div, .catRowHome a > div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.catRow a::after, .catRowHome a::after, .more a::after {
    content: '»';
    color: #94a3b8;
    font-weight: 700;
    font-size: 16px;
    margin-left: auto;
}

.catRow span.arn, .catRow a div span {
    color: var(--accent-green);
    font-weight: 500;
}

/* Latest Updates Items */
.updates div {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-light);
    font-size: 13px;
    line-height: 1.5;
    background: #ffffff;
}

.updates div:last-child {
    border-bottom: none;
}

.updates span { color: var(--accent-red); font-weight: bold; }
.updates span1 { color: #db2777; }
.updates span2 { color: var(--text-main); }
.updates span3 { color: var(--primary-blue); }

/* File List Items */
.fl {
    border-bottom: 1px solid var(--border-light);
    background: #ffffff;
    margin-top: 0;
    transition: all 0.15s ease;
}

.fl:hover {
    background: var(--soft-bg);
}

.fl a {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    text-decoration: none;
}

.fl a > div {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.flThumb {
    width: 54px;
    height: 54px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid var(--border-light);
    flex-shrink: 0;
}

.fileNameText {
    font-weight: 700;
    color: var(--text-main);
    font-size: 14px;
    margin-bottom: 2px;
}

.fl span.mc { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.fl span.alb { color: var(--accent-green); font-weight: 600; }
.fl span.ar { color: var(--accent-red); font-style: normal; font-weight: 500; }
.fl span.arn { color: var(--text-muted); font-weight: 500; }
.fileName { font-weight: 600; color: var(--text-main); }

/* A-Z Navigation Bar */
.az {
    background: #ffffff;
    border: 1px solid var(--border-light);
    padding: 12px 10px;
    text-align: center;
    border-radius: 6px;
    margin-top: 14px;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.az a {
    border: 1px solid var(--border-light);
    padding: 4px 9px;
    margin: 2px;
    display: inline-block;
    background: var(--soft-bg);
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    color: var(--dark-blue);
    font-size: 13px;
    transition: all 0.15s ease;
}

.az .selected, .az a:hover {
    background: var(--primary-blue);
    color: #ffffff;
    border-color: var(--primary-blue);
}

/* Pagination Bar */
.pgn, .pgn2 {
    text-align: center;
    padding: 14px 10px;
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    margin-top: 12px;
}

.pgn a, .pgn span, .pgn2 a, .pgn2 span {
    border: 1px solid #cbd5e1;
    padding: 5px 12px;
    margin: 0 3px;
    background: var(--soft-bg);
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    color: var(--text-main);
    font-size: 13px;
}

.pgn a:hover, .pgn span, .pgn2 a:hover, .pgn2 span {
    background: var(--primary-blue);
    color: #ffffff;
    border-color: var(--primary-blue);
}

/* Download Page & Audio Player Styling */
.fshow {
    padding: 16px 12px;
    text-align: center;
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    margin-top: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.mp3-player-container {
    margin: 16px auto;
    max-width: 480px;
    padding: 12px;
    background: #f1f5f9;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.mp3-player-container audio {
    width: 100%;
    outline: none;
    border-radius: 8px;
}

.downLink {
    margin: 16px 0;
}

.downLink a, .dwnLink {
    margin: 6px;
    background: linear-gradient(135deg, var(--primary-blue), #1d4ed8);
    border-radius: 8px;
    color: #ffffff;
    padding: 12px 28px;
    font-weight: 700;
    font-size: 15px;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    transition: all 0.15s ease;
    text-decoration: none;
}

.downLink a:hover, .dwnLink:hover {
    background: linear-gradient(135deg, #1d4ed8, var(--dark-blue));
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.fhd {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-weight: 700;
    margin: 10px 0 4px 0;
    padding: 6px 12px;
    display: inline-block;
    font-size: 13px;
}

.fi {
    padding: 4px 0 10px 0;
    font-size: 14px;
    color: var(--text-main);
}

.path {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 10px 14px;
    margin: 12px 0;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 13px;
}

/* Centered Top Category Poster Image & Metadata */
.showimage {
    padding: 14px 10px 8px 10px;
    text-align: center;
    background: #ffffff;
}

.showimage img {
    max-width: 220px;
    max-height: 220px;
    width: auto;
    height: auto;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: inline-block;
    vertical-align: middle;
}

.singerinfo, .labelinfo {
    background: #ffffff;
    color: var(--text-main);
    padding: 6px 10px;
    text-align: center;
    font-size: 13px;
    line-height: 1.6;
}

.singerinfo span.ar {
    color: var(--accent-red);
    font-weight: 700;
}

.labelinfo span.la {
    color: var(--primary-blue);
    font-weight: 700;
}

/* Sort By Bar */
.dtype {
    text-align: center;
    padding: 12px 10px;
    margin: 10px 0 14px 0;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.dtype a, .dtype span {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--light-blue), var(--primary-blue));
    color: #ffffff !important;
    font-weight: 700;
    font-size: 13px;
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.25);
    text-decoration: none;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
}

.dtype a:hover {
    background: linear-gradient(135deg, var(--primary-blue), #1e40af);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.35);
    transform: translateY(-1px);
}

/* Sub-nav Pill Buttons */
.stype-btn {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.stype-btn.red {
    background: var(--accent-red);
    color: #ffffff !important;
}

.stype-btn.blue {
    background: var(--primary-blue);
    color: #ffffff !important;
}

.stype-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Footer */
footer, .f1, .footer {
    margin-top: 15px;
    padding: 12px;
    text-align: center;
    background: #0f172a !important;
    color: #94a3b8 !important;
    font-size: 12px;
    border-top: 2px solid #e2e8f0;
    border-radius: 0;
}

footer a, .f1 a, .footer a {
    color: #60a5fa !important;
    font-weight: bold;
    font-size: 12px;
}

/* Centered Modern MP3 Player */
.mp3-player-wrapper {
    margin: 20px auto;
    text-align: center;
    max-width: 500px;
    padding: 0 10px;
}

.mp3-player-card {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    padding: 16px 18px;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.35);
    text-align: center;
    color: #ffffff;
}

.mp3-player-card audio::-webkit-media-controls-panel {
    background-color: #ffffff !important;
}
