@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Noto+Nastaliq+Urdu:wght@400;500;600;700&family=Lato:wght@300;400;700;900&display=swap');

:root {
    --hal-gold: #C9A84C;
    --hal-gold-light: #E8C96F;
    --hal-green: #0E3B2A;
    --hal-green-soft: #E8F4EE;
    --hal-beige: #F2EDE0;
    --hal-off: #FAF8F3;
    --hal-white: #ffffff;
    --hal-muted: #6B6B6B;
    --hal-border: rgba(201,168,76,.22);
    --hal-shadow: 0 18px 45px rgba(14,59,42,.12);
}

.hal-section,
.hal-search-band {
    width: 100%;
    box-sizing: border-box;
    font-family: 'Lato', sans-serif;
}

.hal-section *,
.hal-search-band * {
    box-sizing: border-box;
}

.hal-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.hal-section {
    padding: 70px 0;
    background: var(--hal-off);
}

.hal-player-section {
    padding-bottom: 35px;
}

.hal-results-section {
    background: var(--hal-beige);
    padding-top: 55px;
}

.hal-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 44px;
    align-items: start;
}

.hal-copy .hal-eyebrow,
.hal-eyebrow {
    display: inline-block;
    color: var(--hal-gold);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    font-weight: 700;
    margin-bottom: 10px;
}

.hal-copy h2 {
    font-family: 'Playfair Display', serif;
    color: var(--hal-green);
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.25;
    margin: 0 0 14px;
}

.hal-copy p {
    color: var(--hal-muted);
    font-size: 15px;
    line-height: 1.9;
    margin: 0 0 24px;
}

.hal-divider {
    color: var(--hal-gold);
    margin: 0 0 20px;
}

.hal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .8px;
    font-weight: 700;
    text-decoration: none !important;
}

.hal-btn-dark {
    background: var(--hal-green);
    color: var(--hal-gold-light) !important;
}

.hal-btn-outline {
    border: 1px solid var(--hal-gold);
    color: var(--hal-green) !important;
    background: transparent;
}

.hal-audio-player {
    background: var(--hal-green);
    color: var(--hal-white);
    border-radius: 16px;
    padding: 34px;
    box-shadow: 0 24px 50px rgba(14,59,42,.25);
}

.hal-ap-label {
    color: var(--hal-gold);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    margin: 0 0 20px;
}

.hal-ap-name {
    font-family: 'Noto Nastaliq Urdu', serif;
    font-size: 24px;
    line-height: 2.1;
    text-align: right;
    margin: 0 0 2px;
}

.hal-ap-sub {
    color: rgba(255,255,255,.75);
    font-size: 13px;
    margin: 0 0 25px;
}

.hal-ap-seek {
    height: 4px;
    background: rgba(255,255,255,.18);
    border-radius: 999px;
    cursor: pointer;
    overflow: hidden;
}

.hal-ap-fill {
    width: 0%;
    height: 100%;
    background: var(--hal-gold);
}

.hal-ap-times {
    display: flex;
    justify-content: space-between;
    color: rgba(255,255,255,.75);
    font-size: 11px;
    margin: 7px 0 16px;
}

.hal-ap-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.hal-ap-btn,
.hal-ap-play {
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.hal-ap-btn {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    color: var(--hal-gold);
}

.hal-ap-play {
    width: 58px;
    height: 58px;
    border-radius: 999px;
    background: var(--hal-gold);
    color: var(--hal-green);
    font-size: 18px;
    padding-left: 3px;
}

.hal-search-band {
    background: var(--hal-green);
    padding: 42px 20px;
}

.hal-search-inner {
    max-width: 980px;
    margin: 0 auto;
}

.hal-search-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(201,168,76,.35);
    border-radius: 999px;
    padding: 8px;
}

.hal-search-bar input {
    width: 100%;
    border: none;
    background: transparent;
    color: var(--hal-white);
    padding: 0 18px;
    outline: none;
}

.hal-search-bar input::placeholder {
    color: rgba(255,255,255,.65);
}

.hal-search-bar button {
    border: none;
    background: var(--hal-gold);
    color: var(--hal-green);
    border-radius: 999px;
    min-height: 38px;
    padding: 0 22px;
    font-weight: 700;
    cursor: pointer;
}

.hal-filter-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 16px;
}

.hal-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.hal-chip,
#hal-year-filter {
    border: 1px solid rgba(201,168,76,.35);
    background: rgba(255,255,255,.06);
    color: var(--hal-white);
    border-radius: 999px;
    min-height: 30px;
    padding: 6px 14px;
    font-size: 11px;
    cursor: pointer;
}

.hal-chip.active,
.hal-chip:hover {
    background: var(--hal-gold);
    color: var(--hal-green);
}

#hal-year-filter option {
    color: #111;
}

.hal-tabs-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.hal-lib-tabs {
    display: flex;
    gap: 8px;
}

.hal-lib-tab {
    border: 1px solid var(--hal-border);
    background: var(--hal-white);
    color: var(--hal-green);
    border-radius: 999px;
    min-height: 34px;
    padding: 0 16px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
}

.hal-lib-tab.active {
    background: var(--hal-green);
    color: var(--hal-gold);
    border-color: var(--hal-green);
}

#hal-result-count {
    font-size: 13px;
    color: var(--hal-muted);
    margin: 0;
}

.hal-audio-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.hal-card {
    background: var(--hal-white);
    border: 1px solid var(--hal-border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--hal-shadow);
}

.hal-card-top {
    display: grid;
    grid-template-columns: 118px 1fr;
    min-height: 138px;
}

.hal-card-thumb {
    position: relative;
    width: 118px;
    min-height: 138px;
    border: none;
    background: var(--hal-green);
    overflow: hidden;
    cursor: pointer;
}

.hal-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hal-thumb-letter {
    font-family: 'Noto Nastaliq Urdu', serif;
    color: var(--hal-gold);
    font-size: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.hal-thumb-play {
    position: absolute;
    inset: auto 10px 10px auto;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: var(--hal-gold);
    color: var(--hal-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    padding-left: 2px;
}

.hal-card-content {
    padding: 18px 18px 12px;
    text-align: right;
}

.hal-code {
    display: block;
    color: var(--hal-gold);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.2px;
    margin-bottom: 7px;
}

.hal-urdu {
    font-family: 'Noto Nastaliq Urdu', serif !important;
    color: var(--hal-green);
    font-size: 20px;
    line-height: 2.1;
    text-align: right;
    margin: 0 0 6px;
    font-weight: 500;
}

.hal-english {
    color: var(--hal-muted);
    font-size: 12px;
    line-height: 1.5;
    font-style: italic;
    margin: 0;
}

.hal-card-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
    padding: 14px 18px 16px;
    border-top: 1px solid var(--hal-border);
}

.hal-badge {
    display: inline-flex;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.hal-category {
    background: var(--hal-green-soft);
    color: var(--hal-green);
}

.hal-year {
    background: #e8ddc5;
    color: #6a5d3c;
}

.hal-play-circle {
    margin-left: auto;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: none;
    background: var(--hal-green);
    color: var(--hal-gold);
    cursor: pointer;
}

.hal-table-wrap {
    width: 100%;
    overflow-x: auto;
    background: var(--hal-white);
    border: 1px solid var(--hal-border);
    border-radius: 14px;
}

.hal-lib-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.hal-lib-table th,
.hal-lib-table td {
    padding: 14px 15px;
    border-bottom: 1px solid var(--hal-border);
    text-align: left;
    font-size: 13px;
}

.hal-lib-table th {
    color: var(--hal-green);
    background: #f7f0df;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: .7px;
}

.hal-table-title {
    font-family: 'Noto Nastaliq Urdu', serif;
    color: var(--hal-green);
    font-size: 16px !important;
}

.hal-table-title small {
    font-family: 'Lato', sans-serif;
    color: var(--hal-muted);
    font-size: 11px;
}

.hal-table-play,
.hal-lib-table a {
    color: var(--hal-green);
    font-weight: 700;
    text-decoration: none !important;
    border: none;
    background: transparent;
    cursor: pointer;
}

.hal-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%) translateY(20px);
    background: var(--hal-green);
    color: var(--hal-gold);
    border-radius: 999px;
    padding: 10px 18px;
    opacity: 0;
    pointer-events: none;
    transition: .25s ease;
    z-index: 99999;
}

.hal-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.hal-empty,
.hal-editor-placeholder {
    grid-column: 1 / -1;
    background: #f5efe2;
    border: 1px dashed var(--hal-gold);
    color: var(--hal-green);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    font-weight: 700;
}

.hal-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
}

@media (max-width: 900px) {
    .hal-grid-2,
    .hal-audio-grid {
        grid-template-columns: 1fr;
    }

    .hal-card-top {
        grid-template-columns: 100px 1fr;
    }

    .hal-card-thumb {
        width: 100px;
    }

    .hal-search-bar {
        grid-template-columns: 1fr;
        border-radius: 18px;
    }
}


/* v1.1.21 — Audio Library: show all kalaam categories as filter chips */
.hal-filter-chips {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    max-width: 100% !important;
}

.hal-filter-row {
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
}

.hal-chip {
    white-space: nowrap !important;
}
