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

body.single-poetries,
body.single-poetry {
    background: #f8f6ef !important;
}

.hspk-single-poetry,
.hspk-single-poetry * {
    box-sizing: border-box;
}

.hspk-single-poetry {
    background: #f8f6ef;
    color: #003d2b;
    width: 100%;
    clear: both;
}

.hspk-title-ur,
.hspk-poetry-text,
.hspk-related-urdu,
.hspk-clip-card .urdu {
    font-family: 'Noto Nastaliq Urdu', serif !important;
    direction: rtl;
    text-align: right;
    letter-spacing: 0;
}

.hspk-hero {
    background: #003d2b;
    padding: 54px 20px 52px;
    text-align: center;
    color: #fff;
}

.hspk-title-ur {
    font-size: 42px;
    line-height: 2.05;
    color: #fff;
    margin: 0 0 8px;
    font-weight: 500;
    text-align: center !important;
}

.hspk-title-en {
    font-size: 16px;
    color: #d6bf72;
    font-style: italic;
    margin: 0;
}

.hspk-tags span {
    display: inline-block;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(214,191,114,.35);
    color: #d6bf72;
    font-size: 10px;
    letter-spacing: 1px;
    padding: 5px 12px;
    border-radius: 20px;
    margin: 12px 4px 0;
    text-transform: uppercase;
}

.hspk-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 45px 20px 70px;
    display: grid;
    grid-template-columns: 2fr .9fr;
    gap: 30px;
}

.hspk-main-col,
.hspk-sidebar {
    min-width: 0;
}

.hspk-audio-card {
    background: #003d2b;
    border-radius: 8px;
    padding: 32px;
    color: #fff;
    margin-bottom: 18px;
}

.hspk-section-label {
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #d6bf72;
    margin-bottom: 25px;
}

.hspk-audio-card h2 {
    font-size: 18px;
    color: #fff;
    margin: 0 0 18px;
    font-weight: 600;
}

.hspk-audio-card audio {
    width: 100%;
    display: block;
}

.hspk-action-buttons {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    margin: 22px 0 28px !important;
}

.hspk-pill {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 9px !important;
    min-height: 44px !important;
    padding: 0 24px !important;
    border-radius: 999px !important;
    border: 1px solid #d6bf72 !important;
    background: #f8f6ef !important;
    color: #003d2b !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    box-shadow: none !important;
    outline: none !important;
    cursor: pointer !important;
    transition: all .25s ease !important;
    white-space: nowrap !important;
}

.hspk-pill:hover {
    background: #003d2b !important;
    color: #d6bf72 !important;
    border-color: #003d2b !important;
    transform: translateY(-1px);
}

.hspk-pill::before {
    content: "";
    width: 15px;
    height: 15px;
    display: inline-block;
    background: currentColor;
    flex: 0 0 15px;
}

.hspk-share::before {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2.2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M8 12h8M16 12l-4-4M16 12l-4 4M4 5h6M4 19h6M4 12h2'/%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2.2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M8 12h8M16 12l-4-4M16 12l-4 4M4 5h6M4 19h6M4 12h2'/%3E%3C/svg%3E") center/contain no-repeat;
}

.hspk-download-audio::before {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2.2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M12 3v12M8 11l4 4 4-4M5 21h14'/%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2.2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M12 3v12M8 11l4 4 4-4M5 21h14'/%3E%3C/svg%3E") center/contain no-repeat;
}

.hspk-pdf-btn::before {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M7 3h7l5 5v13H7V3z'/%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M14 3v6h5M9 14h6M9 17h6'/%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M7 3h7l5 5v13H7V3z'/%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M14 3v6h5M9 14h6M9 17h6'/%3E%3C/svg%3E") center/contain no-repeat;
}

.hspk-poetry-text-box {
    background: #fff;
    border: 1px solid #eadfc8;
    border-radius: 12px;
    padding: 28px;
    margin: 0 0 34px;
}

.hspk-poetry-text-box h2,
.hspk-video-section h2,
.hspk-short-clips-section h2 {
    font-size: 28px;
    color: #003d2b;
    margin: 0 0 18px;
    line-height: 1.3;
}

.hspk-poetry-text {
    font-size: 23px;
    line-height: 2.6;
    color: #003d2b;
    white-space: pre-line;
}

.hspk-pdf-box {
    background: #f3f3f3;
    min-height: 620px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 35px;
}

.hspk-pdf-header {
    background: #f5efe2;
    padding: 14px 18px;
    font-size: 13px;
    color: #003d2b;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.hspk-pdf-header a {
    color: #003d2b;
    border: 1px solid #d6bf72;
    border-radius: 20px;
    padding: 7px 14px;
    text-decoration: none;
}

.hspk-pdf-content {
    min-height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #555;
}

.hspk-pdf-content iframe {
    width: 100%;
    height: 620px;
    border: 0;
    display: block;
}

.hspk-video-box {
    background: #111;
    border-radius: 8px;
    min-height: 320px;
    margin-bottom: 35px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hspk-video-box iframe,
.hspk-video-box video {
    width: 100%;
    height: 360px;
    border: 0;
    display: block;
}

.hspk-clips-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 35px;
}

.hspk-clip-card {
    position: relative;
    background: #111;
    border-radius: 8px;
    min-height: 280px;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d6bf72;
    text-decoration: none;
}

.hspk-clip-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hspk-clip-play {
    position: absolute;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(0,61,43,.92);
    color: #d6bf72;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 3px;
}

.hspk-comments-box {
    background: #fff;
    border: 1px solid #eadfc8;
    border-radius: 14px;
    overflow: hidden;
    margin: 38px 0 42px;
}

.hspk-comments-box > h2 {
    background: #f3eddd;
    color: #003d2b;
    font-size: 15px;
    font-weight: 700;
    padding: 18px 24px;
    margin: 0;
    border-bottom: 1px solid #e0d4bd;
}

.hspk-related-section {
    margin-top: 34px;
    margin-bottom: 50px;
}

.hspk-related-title {
    font-size: 28px;
    line-height: 1.3;
    color: #003d2b;
    margin: 0 0 24px;
    font-weight: 700;
}

.hspk-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.hspk-related-card {
    background: #fff;
    border: 1px solid #eadfc8;
    border-radius: 14px;
    overflow: hidden;
    min-height: 220px;
}

.hspk-related-card-link {
    text-decoration: none;
    display: block;
}

.hspk-related-card-inner {
    display: grid;
    grid-template-columns: 105px 1fr;
    min-height: 128px;
}

.hspk-related-thumb {
    background: #003d2b;
    color: #d6bf72;
    min-height: 128px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.hspk-related-thumb img {
    width: 100%;
    height: 100%;
    min-height: 128px;
    object-fit: cover;
    display: block;
}

.hspk-related-content {
    padding: 18px 16px 12px;
}

.hspk-related-code {
    color: #d6a93a;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.hspk-related-urdu {
    color: #003d2b;
    font-size: 18px;
    line-height: 2.1;
    font-weight: 500;
    margin-bottom: 6px;
}

.hspk-related-english {
    color: #5f5f5f;
    font-size: 12px;
    line-height: 1.55;
    font-style: italic;
}

.hspk-related-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px 16px;
}

.hspk-related-category {
    background: #e5f2ea;
    color: #003d2b;
    border-radius: 18px;
    padding: 8px 13px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .7px;
    text-transform: uppercase;
}

.hspk-related-year {
    background: #e8ddc5;
    color: #6a5d3c;
    border-radius: 18px;
    padding: 8px 14px;
    font-size: 11px;
    font-weight: 600;
}

.hspk-related-play {
    width: 34px;
    height: 34px;
    background: #003d2b;
    color: #d6bf72;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 12px;
    line-height: 1;
    flex-shrink: 0;
}

.hspk-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.hspk-side-card {
    background: #f5efe2;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 22px;
}

.hspk-side-card-title {
    padding: 15px 18px;
    font-size: 11px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #003d2b;
    border-bottom: 1px solid rgba(0,0,0,.06);
    font-weight: 700;
}

.hspk-detail-row {
    display: grid;
    grid-template-columns: 40% 60%;
    padding: 12px 18px;
    border-bottom: 1px solid rgba(0,0,0,.06);
    font-size: 12px;
}

.hspk-detail-row .label {
    color: #666;
}

.hspk-detail-row .value {
    color: #003d2b;
    font-weight: 600;
    text-align: right;
}

.hspk-download-card,
.hspk-nav-card {
    padding: 18px;
}

.hspk-gold-btn,
.hspk-green-soft-btn {
    display: block;
    border-radius: 20px;
    padding: 10px 18px;
    font-size: 12px;
    text-align: center;
    text-decoration: none;
    margin-bottom: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.hspk-gold-btn {
    background: #d6bf72;
    color: #003d2b;
}

.hspk-green-soft-btn {
    background: #dcece3;
    color: #003d2b;
}

/* Defensive: hide default theme content if any old template/filter still prints it */
.single-poetries .entry-header,
.single-poetries .page-header,
.single-poetries .post-header,
.single-poetries .entry-title,
.single-poetries .post-title,
.single-poetries .comments-area,
.single-poetry .entry-header,
.single-poetry .page-header,
.single-poetry .post-header,
.single-poetry .entry-title,
.single-poetry .post-title,
.single-poetry .comments-area {
    display: none !important;
}

@media (max-width: 900px) {
    .hspk-wrap {
        grid-template-columns: 1fr;
    }
    .hspk-sidebar {
        position: static;
    }
    .hspk-clips-grid,
    .hspk-related-grid {
        grid-template-columns: 1fr;
    }
    .hspk-title-ur {
        font-size: 30px;
    }
    .hspk-poetry-text {
        font-size: 20px;
    }
    .hspk-related-card-inner {
        grid-template-columns: 105px 1fr;
    }
}
