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

:root {
    --half-green: #003d2b;
    --half-green-2: #012d21;
    --half-gold: #d6bf72;
    --half-gold-light: #f1dc96;
    --half-cream: #f8f6ef;
    --half-border: rgba(214,191,114,.28);
    --half-black: #080808;
}

.half-editor-placeholder {
    background: #f5efe2;
    border: 1px dashed #d6bf72;
    color: #003d2b;
    padding: 28px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
}

.half-albums-library {
    background: var(--half-cream);
    color: #202020;
}

.half-page-hero {
    background: radial-gradient(circle at 50% 0%, rgba(214,191,114,.14), transparent 32%), linear-gradient(135deg, var(--half-green), var(--half-green-2));
    color: #fff;
    padding: 72px 24px 62px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.half-page-hero:before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23D6BF72' stroke-width='0.5' opacity='0.14'%3E%3Cpolygon points='40 4 76 20 76 60 40 76 4 60 4 20'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 80px;
    opacity: .65;
}

.half-hero-inner {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    z-index: 2;
}

.half-eyebrow {
    display: inline-block;
    color: var(--half-gold);
    font-size: 11px;
    letter-spacing: .22em;
    text-transform: uppercase;
    margin-bottom: 14px;
    font-weight: 700;
}

.half-page-hero h1 {
    font-family: Georgia, 'Times New Roman', serif;
    color: #fff;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.1;
    margin: 0;
    font-weight: 600;
}

.half-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 18px auto 16px;
    color: var(--half-gold);
}

.half-divider:before,
.half-divider:after {
    content: '';
    width: 72px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--half-gold), transparent);
}

.half-page-hero p {
    color: rgba(255,255,255,.68);
    font-size: 15px;
    line-height: 1.8;
    margin: 0 auto;
    max-width: 650px;
}

.half-filter-band {
    background: var(--half-green);
    padding: 38px 24px;
}

.half-filter-inner {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
}

.half-filter-inner h2 {
    color: var(--half-gold-light);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 22px;
    margin: 0 0 18px;
    font-weight: 500;
}

.half-search-bar {
    display: flex;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid var(--half-border);
    background: rgba(255,255,255,.05);
}

.half-search-bar input {
    flex: 1;
    padding: 14px 22px;
    background: transparent;
    border: 0;
    outline: 0;
    color: #fff;
    font-size: 14px;
}

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

.half-search-bar button,
.half-reset-btn {
    border: 0;
    background: var(--half-gold);
    color: var(--half-black);
    padding: 14px 26px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.half-search-bar button:hover,
.half-reset-btn:hover {
    background: var(--half-gold-light);
}

.half-filter-row {
    margin-top: 16px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.half-filter-row select {
    min-width: 150px;
    border: 1px solid var(--half-border);
    background: rgba(255,255,255,.06);
    color: #fff;
    border-radius: 999px;
    padding: 11px 16px;
    font-size: 13px;
    outline: 0;
}

.half-filter-row select option {
    color: #111;
}

.half-reset-btn {
    border-radius: 999px;
    padding: 11px 20px;
}

.half-result-count {
    margin-top: 14px;
    color: rgba(255,255,255,.58);
    font-size: 12px;
}

.half-result-count .half-count-number {
    color: var(--half-gold-light);
    font-weight: 700;
}

.half-albums-section {
    padding: 54px 24px 70px;
}

.half-wrap {
    max-width: 1180px;
    margin: 0 auto;
}

.half-albums-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px;
}

.half-album-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: var(--half-black);
    box-shadow: 0 16px 36px rgba(0,0,0,.14);
    transition: transform .25s ease, box-shadow .25s ease;
}

.half-album-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 58px rgba(0,0,0,.22);
}

.half-album-card-link {
    display: block;
    position: relative;
    color: inherit;
    text-decoration: none !important;
}

.half-album-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    transition: transform .7s ease;
}

.half-album-card:hover img {
    transform: scale(1.06);
}

.half-album-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(8,8,8,.94) 0%, rgba(8,8,8,.36) 55%, rgba(8,8,8,.08) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
}

.half-album-vol {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--half-gold);
    color: var(--half-black);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 5px 11px;
    border-radius: 5px;
}

.half-album-title-ur {
    font-family: 'Noto Nastaliq Urdu', serif !important;
    color: #fff;
    direction: rtl;
    text-align: right;
    font-size: 19px;
    line-height: 2;
    margin: 0 0 2px;
    font-weight: 500;
}

.half-album-title-en {
    color: rgba(255,255,255,.62);
    font-size: 12px;
    line-height: 1.5;
    font-style: italic;
    margin: 0 0 12px;
}

.half-album-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.half-album-count {
    color: rgba(255,255,255,.55);
    font-size: 11px;
    line-height: 1.4;
}

.half-album-play {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(214,191,114,.92);
    color: var(--half-black);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    padding-left: 2px;
    transition: transform .2s ease, background .2s ease;
    flex-shrink: 0;
}

.half-album-card:hover .half-album-play {
    background: var(--half-gold-light);
    transform: scale(1.08);
}

.half-empty-message,
.half-no-results {
    grid-column: 1 / -1;
    text-align: center;
    color: #777;
    background: #fff;
    border: 1px solid #eadfc8;
    padding: 38px;
    border-radius: 14px;
}

.half-signup {
    background: var(--half-green);
    padding: 55px 24px;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.half-signup:before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23D6BF72' fill-opacity='0.05'%3E%3Cpolygon points='30 2 58 16 58 44 30 58 2 44 2 16'/%3E%3C/g%3E%3C/svg%3E");
}

.half-signup-inner {
    position: relative;
    max-width: 620px;
    margin: 0 auto;
}

.half-signup h2 {
    color: var(--half-gold-light);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 28px;
    margin: 0 0 10px;
}

.half-signup p {
    color: rgba(255,255,255,.62);
    margin: 0 0 20px;
}

.half-signup-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto 12px;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid var(--half-border);
    background: rgba(255,255,255,.05);
}

.half-signup-form input {
    flex: 1;
    padding: 13px 20px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
}

.half-signup-form input::placeholder {
    color: rgba(255,255,255,.36);
}

.half-signup-form button {
    border: 0;
    background: var(--half-gold);
    color: var(--half-black);
    padding: 13px 22px;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.half-signup small {
    color: rgba(255,255,255,.38);
}

@media (max-width: 1100px) {
    .half-albums-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .half-albums-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
}

@media (max-width: 560px) {
    .half-page-hero {
        padding: 52px 20px 46px;
    }

    .half-search-bar,
    .half-signup-form {
        border-radius: 14px;
        flex-direction: column;
    }

    .half-search-bar button,
    .half-signup-form button {
        border-radius: 0;
    }

    .half-filter-row select,
    .half-reset-btn {
        width: 100%;
    }

    .half-albums-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   v1.1.15 — /albums/ page card layout as per reference
   Large square cover, green frame, white body, title and year pill.
========================================================= */

.half-albums-section {
    padding: 58px 24px 80px !important;
}

.half-albums-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 38px !important;
    max-width: 1120px !important;
    margin: 0 auto !important;
}

.half-album-card {
    background: #ffffff !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    box-shadow: 0 12px 30px rgba(0, 61, 43, 0.08) !important;
    border: 0 !important;
    transform: none;
}

.half-album-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 18px 42px rgba(0, 61, 43, 0.13) !important;
}

.half-album-card-link {
    display: block !important;
    color: inherit !important;
    text-decoration: none !important;
}

.half-album-cover-frame {
    background: #003d2b !important;
    border-radius: 18px !important;
    margin: 0 !important;
    padding: 22px !important;
    aspect-ratio: 1 / 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}

.half-album-cover-frame img,
.half-album-card img {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: contain !important;
    object-position: center center !important;
    display: block !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    transform: none !important;
}

.half-album-card:hover img {
    transform: none !important;
}

.half-album-overlay,
.half-album-vol,
.half-album-bottom,
.half-album-meta,
.half-album-count,
.half-album-play,
.half-album-title-ur {
    display: none !important;
}

.half-album-body {
    background: #ffffff !important;
    padding: 26px 28px 30px !important;
    min-height: 116px !important;
}

.half-album-title-en {
    color: #353535 !important;
    font-size: 17px !important;
    line-height: 1.45 !important;
    font-style: italic !important;
    font-weight: 400 !important;
    margin: 0 0 14px !important;
    text-align: left !important;
}

.half-album-year-pill {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #e5f4ec !important;
    color: #003d2b !important;
    border-radius: 999px !important;
    padding: 8px 16px !important;
    font-size: 12px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
}

@media (max-width: 900px) {
    .half-albums-grid {
        grid-template-columns: 1fr !important;
        max-width: 520px !important;
    }
}

@media (max-width: 520px) {
    .half-albums-section {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    .half-album-cover-frame {
        padding: 14px !important;
    }
    .half-album-body {
        padding: 20px 22px 24px !important;
    }
}


/* =========================================================
   v1.1.16 — /albums/ page: 3 columns on desktop
========================================================= */
.half-albums-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 34px !important;
    max-width: 1180px !important;
}

@media (max-width: 1024px) {
    .half-albums-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        max-width: 860px !important;
    }
}

@media (max-width: 680px) {
    .half-albums-grid {
        grid-template-columns: 1fr !important;
        max-width: 520px !important;
    }
}


/* v1.1.17 — Remove background from /albums/ section */
.half-albums-section {
    background: transparent !important;
    background-color: transparent !important;
}
