/* ==========================================================================
   Parwachan Templates — Custom Styles
   "Sacred Manuscript" aesthetic — warm, contemplative, content-first.
   Complements the Divi parent theme. Uses BEM naming with bkd- prefix.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Custom Properties
   -------------------------------------------------------------------------- */
:root {
    --bkd-navy: #403D48;
    --bkd-navy-dark: #34313A;
    --bkd-accent: #ED5E4E;
    --bkd-accent-hover: #403D48;
    --bkd-accent-soft: rgba(237, 94, 78, 0.08);
    --bkd-accent-border: rgba(237, 94, 78, 0.25);
    --bkd-text: #000000;
    --bkd-text-light: #555555;
    --bkd-text-muted: #aaaaaa;
    --bkd-white: #ffffff;
    --bkd-bg-light: #f5f5f5;
    --bkd-bg-warm: #faf8f5;
    --bkd-border: #cfcfcf;
    --bkd-border-light: #e8e6e3;
    --bkd-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --bkd-shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
    --bkd-shadow-elevated: 0 8px 30px rgba(0, 0, 0, 0.1);
    --bkd-radius: 5px;
    --bkd-radius-lg: 8px;
    --bkd-radius-pill: 9999px;
    --bkd-container-width: 80%;
    --bkd-container-max: 1080px;
    --bkd-admin-bg: #fff8e1;
    --bkd-admin-border: #ffcc02;
    --bkd-gurbani-bg: #fdfbf7;
    --bkd-gurbani-border: #e8dfd0;
    --bkd-gurbani-accent: #c4a265;
    --bkd-transition: 0.25s ease;
}

/* --------------------------------------------------------------------------
   2. Utilities
   -------------------------------------------------------------------------- */
.bkd-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --------------------------------------------------------------------------
   2b. Container
   -------------------------------------------------------------------------- */
.bkd-container {
    width: var(--bkd-container-width);
    max-width: var(--bkd-container-max);
    margin-left: auto;
    margin-right: auto;
}

/* --------------------------------------------------------------------------
   3. Hero Section
   -------------------------------------------------------------------------- */
.bkd-hero {
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: var(--bkd-navy);
}

.bkd-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(64, 61, 72, 0.94) 0%,
        rgba(52, 49, 58, 0.88) 50%,
        rgba(237, 94, 78, 0.15) 100%
    );
    z-index: 1;
}

/* Subtle geometric pattern overlay inspired by Gurdwara lattice work */
.bkd-hero__overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(237, 94, 78, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.03) 0%, transparent 40%);
    z-index: 1;
}

.bkd-hero__content {
    position: relative;
    z-index: 2;
    padding: 56px 20px;
    width: 100%;
    max-width: var(--bkd-container-max);
}

.bkd-hero__content h1 {
    color: var(--bkd-white);
    font-size: 36px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.bkd-hero__content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* --- Single variant: editorial left-aligned header --- */
.bkd-hero.bkd-hero--single {
    min-height: 240px;
    align-items: flex-end;
    text-align: left;
}

.bkd-hero.bkd-hero--single .bkd-hero__content {
    padding: 48px 20px 44px;
    width: var(--bkd-container-width);
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.bkd-hero--single h1 {
    font-size: 32px;
    line-height: 1.35;
    text-align: left;
}

/* Bilingual title split: primary (Gurmukhi) + subtitle (English) */
.bkd-hero__title-primary {
    display: block;
    text-align: left;
}

.bkd-hero__title-sub {
    display: block;
    font-size: 20px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 8px;
    letter-spacing: 0;
    line-height: 1.5;
    text-align: left;
}

/* Decorative gold divider between breadcrumbs and title */
.bkd-hero__divider {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--bkd-gurbani-accent) 0%, var(--bkd-accent) 100%);
    margin: 20px 0 24px;
    border-radius: 1px;
}

/* Archive hero: divider centred */
.bkd-hero:not(.bkd-hero--single) .bkd-hero__divider {
    margin-left: auto;
    margin-right: auto;
}

/* Speaker byline */
.bkd-hero--single .bkd-hero__byline {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    margin: 14px 0 0;
    letter-spacing: 0.02em;
    line-height: 1.5;
    text-align: left;
}

.bkd-hero__byline::before {
    content: '\f110'; /* dashicons-admin-users */
    font-family: 'dashicons';
    font-size: 14px;
    margin-right: 6px;
    vertical-align: -1px;
    color: var(--bkd-gurbani-accent);
    opacity: 0.7;
}

/* --------------------------------------------------------------------------
   4. Breadcrumbs
   -------------------------------------------------------------------------- */
.bkd-breadcrumbs {
    margin-bottom: 16px;
}

.bkd-breadcrumbs__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
}

.bkd-breadcrumbs__list li {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    letter-spacing: 0.01em;
}

/* On hero (white text) */
.bkd-hero .bkd-breadcrumbs__list li,
.bkd-hero .bkd-breadcrumbs__list a {
    color: rgba(255, 255, 255, 0.7);
}

.bkd-hero .bkd-breadcrumbs__list a:hover {
    color: var(--bkd-white);
}

.bkd-hero .bkd-breadcrumbs__list li:last-child {
    color: var(--bkd-white);
    font-weight: 600;
}

/* On white bg */
.bkd-breadcrumbs--light .bkd-breadcrumbs__list li,
.bkd-breadcrumbs--light .bkd-breadcrumbs__list a {
    color: var(--bkd-text-light);
}

.bkd-breadcrumbs--light .bkd-breadcrumbs__list a:hover {
    color: var(--bkd-accent);
}

/* Truncate long current-page breadcrumb items */
.bkd-breadcrumbs__list li:last-child {
    max-width: 320px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bkd-breadcrumbs__separator {
    margin: 0 8px;
    opacity: 0.5;
    font-size: 11px;
}

/* --------------------------------------------------------------------------
   5. Search & Filter Bar
   -------------------------------------------------------------------------- */
.bkd-filter-bar {
    background: var(--bkd-white);
    border-bottom: 1px solid var(--bkd-border-light);
    padding: 20px 0;
}

/* Top row: search + filter toggle */
.bkd-filter-form__top {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

/* Search input with icon */
.bkd-filter-form__search-wrap {
    flex: 1;
    position: relative;
}

.bkd-filter-form__search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: var(--bkd-text-muted);
    pointer-events: none;
}

.bkd-filter-form input[type="search"] {
    width: 100%;
    padding: 11px 14px 11px 40px;
    border: 1px solid var(--bkd-border);
    border-radius: var(--bkd-radius-pill);
    background: var(--bkd-bg-light);
    font-size: 14px;
    color: var(--bkd-text);
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color var(--bkd-transition), box-shadow var(--bkd-transition), background var(--bkd-transition);
}

.bkd-filter-form input[type="search"]:focus {
    border-color: var(--bkd-accent);
    outline: none;
    box-shadow: 0 0 0 3px var(--bkd-accent-soft);
    background: var(--bkd-white);
}

.bkd-filter-form input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
    height: 16px;
    width: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E") center/contain no-repeat;
    cursor: pointer;
}

/* Filter toggle button — hidden by default (no-JS fallback shows panel) */
.bkd-filter-form__toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 18px;
    border: 1px solid var(--bkd-border);
    border-radius: var(--bkd-radius-pill);
    background: var(--bkd-white);
    color: var(--bkd-text-light);
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--bkd-transition);
}

.bkd-filter-form__toggle .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.bkd-filter-form__toggle:hover {
    border-color: var(--bkd-accent-border);
    color: var(--bkd-accent);
}

.bkd-filter-form__toggle:focus-visible {
    outline: 2px solid var(--bkd-accent-border);
    outline-offset: 1px;
}

/* Active state: filters are applied */
.bkd-filter-form__toggle--active {
    border-color: var(--bkd-accent-border);
    background: var(--bkd-accent-soft);
    color: var(--bkd-accent);
}

/* Open state: panel is expanded */
.bkd-filter-form__toggle--open {
    background: var(--bkd-accent);
    border-color: var(--bkd-accent);
    color: var(--bkd-white);
}

/* Filter count badge */
.bkd-filter-form__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: var(--bkd-accent);
    color: var(--bkd-white);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.bkd-filter-form__toggle--open .bkd-filter-form__badge {
    background: var(--bkd-white);
    color: var(--bkd-accent);
}

/* Active filter tags */
.bkd-filter-form__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.bkd-filter-form__tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: var(--bkd-radius-pill);
    background: var(--bkd-bg-light);
    border: 1px solid var(--bkd-border-light);
    font-size: 12px;
    color: var(--bkd-text-light);
    text-decoration: none;
    line-height: 1.3;
    transition: all var(--bkd-transition);
}

.bkd-filter-form__tag:hover {
    border-color: var(--bkd-accent-border);
    background: var(--bkd-accent-soft);
    color: var(--bkd-accent);
}

.bkd-filter-form__tag-label {
    font-weight: 700;
    color: var(--bkd-text);
}

.bkd-filter-form__tag:hover .bkd-filter-form__tag-label {
    color: var(--bkd-accent);
}

.bkd-filter-form__tag-x {
    font-size: 15px;
    line-height: 1;
    margin-left: 2px;
    opacity: 0.5;
}

.bkd-filter-form__tag:hover .bkd-filter-form__tag-x {
    opacity: 1;
}

/* Collapsible filter panel */
.bkd-filter-form__panel {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--bkd-border-light);
}

.bkd-filter-form__panel[hidden] {
    display: none;
}

/* Filter grid inside panel */
.bkd-filter-form__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.bkd-filter-form__group {
    display: flex;
    flex-direction: column;
}

.bkd-filter-form__label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--bkd-text-light);
    margin-bottom: 6px;
}

.bkd-filter-form select,
.bkd-filter-form input[type="date"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--bkd-border);
    border-radius: var(--bkd-radius);
    background: var(--bkd-white);
    font-size: 14px;
    color: var(--bkd-text);
    font-family: inherit;
    appearance: auto;
    transition: border-color var(--bkd-transition), box-shadow var(--bkd-transition);
}

.bkd-filter-form select:focus,
.bkd-filter-form input[type="date"]:focus {
    border-color: var(--bkd-accent);
    outline: none;
    box-shadow: 0 0 0 3px var(--bkd-accent-soft);
}

/* Panel actions */
.bkd-filter-form__actions {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--bkd-border-light);
}

.bkd-filter-form__submit {
    padding: 10px 28px;
    background: var(--bkd-accent);
    color: var(--bkd-white);
    border: 2px solid var(--bkd-accent);
    border-radius: var(--bkd-radius-pill);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background var(--bkd-transition), border-color var(--bkd-transition), transform var(--bkd-transition);
    white-space: nowrap;
}

.bkd-filter-form__submit:hover {
    background: var(--bkd-accent-hover);
    border-color: var(--bkd-accent-hover);
    transform: translateY(-1px);
}

.bkd-filter-form__submit:focus-visible {
    outline: 2px solid var(--bkd-accent-border);
    outline-offset: 2px;
}

.bkd-filter-form__clear {
    padding: 10px 16px;
    color: var(--bkd-text-light);
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--bkd-transition);
}

.bkd-filter-form__clear:hover {
    color: var(--bkd-accent);
}

/* --------------------------------------------------------------------------
   6. Card Grid (Archive)
   -------------------------------------------------------------------------- */
.bkd-parwachan-grid-section {
    padding: 48px 0 24px;
    background: var(--bkd-bg-warm);
}

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

.bkd-parwachan-card {
    background: var(--bkd-white);
    border-radius: var(--bkd-radius-lg);
    box-shadow: var(--bkd-shadow);
    overflow: hidden;
    transition: box-shadow var(--bkd-transition), transform var(--bkd-transition);
}

.bkd-parwachan-card:hover {
    box-shadow: var(--bkd-shadow-hover);
    transform: translateY(-3px);
}

.bkd-parwachan-card__link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.bkd-parwachan-card__thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--bkd-bg-light);
}

.bkd-parwachan-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.bkd-parwachan-card:hover .bkd-parwachan-card__thumb img {
    transform: scale(1.04);
}

.bkd-parwachan-card__thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bkd-navy) 0%, var(--bkd-navy-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Media indicator badges on card thumbnail */
.bkd-parwachan-card__media-badges {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    gap: 6px;
}

.bkd-parwachan-card__media-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: var(--bkd-white);
    font-size: 14px;
    backdrop-filter: blur(4px);
}

.bkd-parwachan-card__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.bkd-parwachan-card__title {
    font-size: 17px;
    font-weight: 700;
    color: var(--bkd-text);
    margin: 0 0 6px;
    line-height: 1.4;
}

.bkd-parwachan-card__gurmukhi {
    font-size: 14px;
    color: var(--bkd-text-light);
    margin: 0 0 auto;
    padding-bottom: 14px;
    line-height: 1.8;
}

.bkd-parwachan-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    font-size: 13px;
    color: var(--bkd-text-light);
    border-top: 1px solid var(--bkd-border-light);
    padding-top: 12px;
    margin-top: auto;
}

.bkd-parwachan-card__date::before {
    content: "\f508"; /* dashicons-calendar-alt */
    font-family: "dashicons";
    margin-right: 5px;
    font-size: 14px;
    vertical-align: -2px;
    color: var(--bkd-accent);
}

.bkd-parwachan-card__speaker::before {
    content: "\f110"; /* dashicons-admin-users */
    font-family: "dashicons";
    margin-right: 5px;
    font-size: 14px;
    vertical-align: -2px;
    color: var(--bkd-accent);
}

/* Series label on card */
.bkd-parwachan-card__series {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--bkd-accent);
    margin-bottom: 6px;
}

/* No results */
.bkd-no-results {
    text-align: center;
    padding: 80px 20px;
    color: var(--bkd-text-light);
}

.bkd-no-results h2 {
    color: var(--bkd-text) !important;
    font-size: 22px;
    margin-bottom: 8px;
}

/* --------------------------------------------------------------------------
   7. Pagination
   -------------------------------------------------------------------------- */
.bkd-pagination {
    padding: 24px 0 56px;
    text-align: center;
    background: var(--bkd-bg-warm);
}

.bkd-pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.bkd-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--bkd-border);
    border-radius: var(--bkd-radius);
    text-decoration: none;
    color: var(--bkd-text);
    font-size: 14px;
    transition: all var(--bkd-transition);
    background: var(--bkd-white);
}

.bkd-pagination .page-numbers:hover {
    border-color: var(--bkd-accent);
    color: var(--bkd-accent);
}

.bkd-pagination .page-numbers.current {
    background: var(--bkd-accent);
    border-color: var(--bkd-accent);
    color: var(--bkd-white);
    font-weight: 600;
}

.bkd-pagination .page-numbers.dots {
    border: none;
    cursor: default;
    background: transparent;
}

/* --------------------------------------------------------------------------
   8. Single Parwachan — Layout
   -------------------------------------------------------------------------- */
.bkd-single-parwachan {
    padding: 40px 0 20px;
}

/* Two-column layout: main content + sidebar */
.bkd-single-parwachan__layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

.bkd-single-parwachan__main {
    min-width: 0;
}

.bkd-single-parwachan__sidebar {
    position: sticky;
    top: 100px;
}

/* --------------------------------------------------------------------------
   9. Single — Featured Image (standalone, no video)
   -------------------------------------------------------------------------- */
.bkd-single-parwachan__thumb {
    margin-bottom: 32px;
    border-radius: var(--bkd-radius-lg);
    overflow: hidden;
    box-shadow: var(--bkd-shadow);
}

.bkd-single-parwachan__thumb img {
    width: 100%;
    height: auto;
    display: block;
}

/* --------------------------------------------------------------------------
   10. Single — Media Hero (poster + lazy video)
   -------------------------------------------------------------------------- */
.bkd-media-hero {
    position: relative;
    margin-bottom: 32px;
    border-radius: var(--bkd-radius-lg);
    overflow: hidden;
    box-shadow: var(--bkd-shadow-elevated);
    aspect-ratio: 16 / 9;
    background: #000;
}

/* Poster layer — featured image + overlay + play button */
.bkd-media-hero__poster {
    position: absolute;
    inset: 0;
    z-index: 2;
    cursor: pointer;
}

.bkd-media-hero__image {
    margin: 0;
    width: 100%;
    height: 100%;
}

.bkd-media-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Semi-transparent navy overlay */
.bkd-media-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(52, 49, 58, 0.15) 0%,
        rgba(52, 49, 58, 0.45) 100%
    );
    transition: background 0.3s ease;
}

.bkd-media-hero__poster:hover .bkd-media-hero__overlay {
    background: linear-gradient(
        180deg,
        rgba(52, 49, 58, 0.10) 0%,
        rgba(52, 49, 58, 0.35) 100%
    );
}

/* Play button */
.bkd-media-hero__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: none;
    background: var(--bkd-accent);
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 24px rgba(237, 94, 78, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.bkd-media-hero__play:hover,
.bkd-media-hero__play:focus-visible {
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow: 0 6px 32px rgba(237, 94, 78, 0.55);
    background: #d9503f;
}

.bkd-media-hero__play:focus-visible {
    outline: 3px solid var(--bkd-white);
    outline-offset: 3px;
}

/* CSS triangle play icon */
.bkd-media-hero__play-icon {
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 14px 0 14px 24px;
    border-color: transparent transparent transparent var(--bkd-white);
    margin-left: 4px; /* optical centre */
}

/* Pulse ring animation */
.bkd-media-hero__play::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(237, 94, 78, 0.5);
    animation: bkd-pulse-ring 2s ease-out infinite;
}

@keyframes bkd-pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.35);
        opacity: 0;
    }
}

/* --------------------------------------------------------------------------
   10b. Video Modal — cinematic lightbox
   -------------------------------------------------------------------------- */
.bkd-video-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.bkd-video-modal--open {
    opacity: 1;
    visibility: visible;
}

/* Backdrop */
.bkd-video-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(52, 49, 58, 0.95);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

/* Video stage — the 16:9 container */
.bkd-video-modal__stage {
    position: relative;
    width: 94vw;
    max-width: 1600px;
    aspect-ratio: 16 / 9;
    border-radius: var(--bkd-radius-lg);
    overflow: hidden;
    background: #000;
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.06);
    transform: scale(0.85);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.35s ease;
}

.bkd-video-modal--open .bkd-video-modal__stage {
    transform: scale(1);
    opacity: 1;
}

.bkd-video-modal__stage iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* Close button */
.bkd-video-modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease, transform 0.25s ease;
}

.bkd-video-modal__close:hover {
    background: rgba(255, 255, 255, 0.95);
}

.bkd-video-modal__close:focus-visible {
    outline: 2px solid var(--bkd-accent);
    outline-offset: 3px;
    background: rgba(255, 255, 255, 0.95);
}

/* CSS X icon via pseudo-elements */
.bkd-video-modal__close::before,
.bkd-video-modal__close::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 2px;
    background: var(--bkd-white);
    border-radius: 1px;
    transition: background 0.25s ease;
}

.bkd-video-modal__close:hover::before,
.bkd-video-modal__close:hover::after,
.bkd-video-modal__close:focus-visible::before,
.bkd-video-modal__close:focus-visible::after {
    background: var(--bkd-navy);
}

.bkd-video-modal__close::before {
    transform: rotate(45deg);
}

.bkd-video-modal__close::after {
    transform: rotate(-45deg);
}

/* --------------------------------------------------------------------------
   10c. Single — Video Embed fallback (no poster image)
   -------------------------------------------------------------------------- */
.bkd-single-parwachan__video {
    margin-bottom: 32px;
}

.bkd-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: var(--bkd-radius-lg);
    background: #000;
    box-shadow: var(--bkd-shadow);
}

.bkd-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* --------------------------------------------------------------------------
   11. Single — Custom Audio Player
   -------------------------------------------------------------------------- */
.bkd-single-parwachan__audio {
    margin-bottom: 32px;
}

.bkd-audio-player {
    background: var(--bkd-bg-warm);
    border: 1px solid var(--bkd-border-light);
    border-radius: var(--bkd-radius-lg);
    padding: 24px;
    position: relative;
}

/* Hide native element when JS custom controls are active */
.bkd-audio-player--custom .bkd-audio-player__element {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Show native element as fallback (no JS) */
.bkd-audio-player__element {
    width: 100%;
    border-radius: var(--bkd-radius);
}

/* Controls wrapper — hidden until JS initialises */
.bkd-audio-player__controls {
    display: none;
}

.bkd-audio-player--custom .bkd-audio-player__controls {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Row layout */
.bkd-audio-player__row {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Play / pause button */
.bkd-audio-player__play-btn {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--bkd-accent);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(237, 94, 78, 0.25);
}

.bkd-audio-player__play-btn:hover {
    background: #d9503f;
    transform: scale(1.05);
    box-shadow: 0 3px 12px rgba(237, 94, 78, 0.35);
}

.bkd-audio-player__play-btn:focus-visible {
    outline: 3px solid var(--bkd-accent-border);
    outline-offset: 2px;
}

/* CSS play triangle */
.bkd-audio-player__play-icon {
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 0 8px 14px;
    border-color: transparent transparent transparent var(--bkd-white);
    margin-left: 3px; /* optical centre */
    transition: border-width 0.15s ease, border-color 0.15s ease;
}

/* Pause state — two bars via box-shadow trick */
.bkd-audio-player--playing .bkd-audio-player__play-icon {
    border-width: 0;
    width: 12px;
    height: 14px;
    margin-left: 0;
    border-left: 4px solid var(--bkd-white);
    border-right: 4px solid var(--bkd-white);
}

/* Progress bar */
.bkd-audio-player__progress-wrap {
    flex: 1;
    min-width: 0;
    height: 32px;
    display: flex;
    align-items: center;
    cursor: pointer;
    touch-action: none;
}

.bkd-audio-player__progress-wrap:focus-visible {
    outline: none;
}

.bkd-audio-player__progress-wrap:focus-visible .bkd-audio-player__progress-track {
    box-shadow: 0 0 0 3px var(--bkd-accent-soft);
}

.bkd-audio-player__progress-track {
    position: relative;
    width: 100%;
    height: 6px;
    background: var(--bkd-border-light);
    border-radius: 3px;
    overflow: visible;
    transition: height 0.15s ease;
}

.bkd-audio-player__progress-wrap:hover .bkd-audio-player__progress-track {
    height: 8px;
}

.bkd-audio-player__progress-buffered {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: var(--bkd-border);
    border-radius: 3px;
    width: 0;
    transition: width 0.3s ease;
}

.bkd-audio-player__progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: var(--bkd-accent);
    border-radius: 3px;
    width: 0;
    pointer-events: none;
}

.bkd-audio-player__progress-thumb {
    position: absolute;
    top: 50%;
    left: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bkd-accent);
    border: 2px solid var(--bkd-white);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.15s ease, transform 0.15s ease;
    pointer-events: none;
}

.bkd-audio-player__progress-wrap:hover .bkd-audio-player__progress-thumb,
.bkd-audio-player--playing .bkd-audio-player__progress-thumb {
    opacity: 1;
}

.bkd-audio-player__progress-wrap:hover .bkd-audio-player__progress-thumb {
    transform: translate(-50%, -50%) scale(1.15);
}

/* Time display */
.bkd-audio-player__time {
    flex-shrink: 0;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    color: var(--bkd-text-light);
    white-space: nowrap;
    letter-spacing: 0.02em;
    min-width: 90px;
    text-align: right;
}

.bkd-audio-player__time-sep {
    opacity: 0.5;
}

/* Volume group */
.bkd-audio-player__volume-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.bkd-audio-player__vol-btn {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bkd-text-light);
    border-radius: var(--bkd-radius);
    transition: color var(--bkd-transition), background var(--bkd-transition);
    padding: 0;
}

.bkd-audio-player__vol-btn:hover {
    color: var(--bkd-accent);
    background: var(--bkd-accent-soft);
}

.bkd-audio-player__vol-btn:focus-visible {
    outline: 2px solid var(--bkd-accent-border);
    outline-offset: 1px;
}

.bkd-audio-player__vol-btn .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.bkd-audio-player__vol-wrap {
    width: 80px;
    height: 28px;
    display: flex;
    align-items: center;
    cursor: pointer;
    touch-action: none;
}

.bkd-audio-player__vol-wrap:focus-visible {
    outline: none;
}

.bkd-audio-player__vol-wrap:focus-visible .bkd-audio-player__vol-track {
    box-shadow: 0 0 0 3px var(--bkd-accent-soft);
}

.bkd-audio-player__vol-track {
    position: relative;
    width: 100%;
    height: 4px;
    background: var(--bkd-border-light);
    border-radius: 2px;
    overflow: visible;
}

.bkd-audio-player__vol-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: var(--bkd-accent);
    border-radius: 2px;
    width: 100%;
    pointer-events: none;
}

.bkd-audio-player__vol-thumb {
    position: absolute;
    top: 50%;
    left: 100%;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bkd-accent);
    border: 2px solid var(--bkd-white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: transform 0.15s ease;
}

.bkd-audio-player__vol-wrap:hover .bkd-audio-player__vol-thumb {
    transform: translate(-50%, -50%) scale(1.2);
}

/* Speed button */
.bkd-audio-player__speed-btn {
    flex-shrink: 0;
    min-width: 40px;
    height: 30px;
    border: 1px solid var(--bkd-border);
    border-radius: var(--bkd-radius);
    background: var(--bkd-white);
    color: var(--bkd-text-light);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    padding: 0 8px;
    transition: all var(--bkd-transition);
    font-family: inherit;
}

.bkd-audio-player__speed-btn:hover {
    border-color: var(--bkd-accent);
    color: var(--bkd-accent);
}

.bkd-audio-player__speed-btn:focus-visible {
    outline: 2px solid var(--bkd-accent-border);
    outline-offset: 1px;
}

/* Download button */
.bkd-audio-player__download {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--bkd-accent);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    margin-left: auto;
    white-space: nowrap;
    transition: color var(--bkd-transition);
}

.bkd-audio-player__download:hover {
    color: var(--bkd-accent-hover);
}

.bkd-audio-player__download .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* --------------------------------------------------------------------------
   12. Single — Descriptions
   -------------------------------------------------------------------------- */
.bkd-single-parwachan__descriptions {
    margin-bottom: 36px;
}

.bkd-single-parwachan__desc-en {
    font-size: 16px;
    line-height: 1.85;
    color: var(--bkd-text);
    margin-bottom: 24px;
}

.bkd-single-parwachan__desc-pa {
    font-size: 17px;
    line-height: 2.1;
    color: var(--bkd-text);
    padding-top: 24px;
    border-top: 1px solid var(--bkd-border-light);
}

/* Section headings */
.bkd-single-parwachan h2,
.bkd-related-parwachans h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--bkd-text) !important;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bkd-accent);
    display: inline-block;
}

/* --------------------------------------------------------------------------
   13. Single — Gurbani Reference Panel (Content Meta)
   The distinctive "sacred manuscript" element.
   -------------------------------------------------------------------------- */
.bkd-gurbani-panel {
    background: var(--bkd-gurbani-bg);
    border: 1px solid var(--bkd-gurbani-border);
    border-radius: var(--bkd-radius-lg);
    padding: 28px;
    margin-bottom: 36px;
    position: relative;
    overflow: hidden;
}

/* Decorative top border — warm gold accent */
.bkd-gurbani-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(
        90deg,
        var(--bkd-gurbani-accent) 0%,
        var(--bkd-accent) 50%,
        var(--bkd-gurbani-accent) 100%
    );
}

/* Subtle corner ornament */
.bkd-gurbani-panel::after {
    content: '੧';
    position: absolute;
    top: 14px;
    right: 20px;
    font-size: 28px;
    color: var(--bkd-gurbani-accent);
    opacity: 0.2;
    font-weight: 700;
    line-height: 1;
}

.bkd-gurbani-panel__heading {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--bkd-gurbani-accent);
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bkd-gurbani-panel__heading::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--bkd-gurbani-border);
}

/* Main shabad display */
.bkd-gurbani-panel__shabad {
    margin-bottom: 20px;
}

.bkd-gurbani-panel__shabad-pa {
    font-size: 20px;
    line-height: 2;
    color: var(--bkd-text);
    margin-bottom: 8px;
    font-weight: 500;
}

.bkd-gurbani-panel__shabad-en {
    font-size: 14px;
    line-height: 1.8;
    color: var(--bkd-text-light);
    font-style: italic;
}

/* Reference details in a compact grid */
.bkd-gurbani-panel__details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 24px;
    padding-top: 16px;
    border-top: 1px solid var(--bkd-gurbani-border);
}

.bkd-gurbani-panel__detail {
    font-size: 13px;
    line-height: 1.5;
}

.bkd-gurbani-panel__detail-label {
    font-weight: 700;
    color: var(--bkd-text-light);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-size: 11px;
    display: block;
    margin-bottom: 2px;
}

.bkd-gurbani-panel__detail-value {
    color: var(--bkd-text);
}

.bkd-gurbani-panel__detail-value a {
    color: var(--bkd-accent);
    text-decoration: none;
    transition: color var(--bkd-transition);
}

.bkd-gurbani-panel__detail-value a:hover {
    color: var(--bkd-accent-hover);
    text-decoration: underline;
}

/* Tags inside the Gurbani panel */
.bkd-gurbani-panel__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 16px;
    border-top: 1px solid var(--bkd-gurbani-border);
    margin-top: 12px;
}

.bkd-gurbani-panel__tag {
    display: inline-block;
    padding: 4px 14px;
    background: var(--bkd-white);
    border: 1px solid var(--bkd-gurbani-border);
    border-radius: var(--bkd-radius-pill);
    font-size: 12px;
    font-weight: 600;
    color: var(--bkd-text-light);
    text-decoration: none;
    transition: all var(--bkd-transition);
}

.bkd-gurbani-panel__tag:hover {
    border-color: var(--bkd-accent);
    color: var(--bkd-accent);
    background: var(--bkd-accent-soft);
}

/* --------------------------------------------------------------------------
   14. Single — Additional Meta (Sidebar Card)
   -------------------------------------------------------------------------- */
.bkd-details-card {
    border-radius: var(--bkd-radius-lg);
    box-shadow: var(--bkd-shadow);
    overflow: hidden;
    background: var(--bkd-white);
    margin-bottom: 24px;
}

.bkd-details-card__header {
    padding: 16px 20px;
    background: var(--bkd-navy);
    color: var(--bkd-white);
}

.bkd-details-card__header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--bkd-white) !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bkd-details-card__body {
    padding: 20px;
}

.bkd-details-card__row {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--bkd-border-light);
    font-size: 14px;
    color: var(--bkd-text);
    line-height: 1.5;
    align-items: flex-start;
}

.bkd-details-card__row:first-child {
    padding-top: 0;
}

.bkd-details-card__row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.bkd-details-card__row .dashicons {
    flex-shrink: 0;
    color: var(--bkd-accent);
    margin-top: 1px;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.bkd-details-card__label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--bkd-text-light);
    display: block;
    margin-bottom: 2px;
}

.bkd-details-card__value {
    color: var(--bkd-text);
}

.bkd-details-card__value a {
    color: var(--bkd-accent);
    text-decoration: none;
}

.bkd-details-card__value a:hover {
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   15. Single — Index / Timeline
   -------------------------------------------------------------------------- */
.bkd-single-parwachan__index {
    margin-bottom: 36px;
}

.bkd-index-content {
    background: var(--bkd-bg-light);
    border: 1px solid var(--bkd-border-light);
    border-radius: var(--bkd-radius-lg);
    padding: 24px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--bkd-text);
}

.bkd-index-content + .bkd-index-content {
    margin-top: 12px;
}

/* --------------------------------------------------------------------------
   16. Single — YouTube Shorts (Horizontal Scroll)
   -------------------------------------------------------------------------- */
.bkd-single-parwachan__shorts {
    margin-bottom: 36px;
}

.bkd-shorts-row {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.bkd-shorts-row::-webkit-scrollbar {
    height: 6px;
}

.bkd-shorts-row::-webkit-scrollbar-track {
    background: var(--bkd-bg-light);
    border-radius: 3px;
}

.bkd-shorts-row::-webkit-scrollbar-thumb {
    background: var(--bkd-border);
    border-radius: 3px;
}

.bkd-shorts-row__item {
    flex: 0 0 200px;
    aspect-ratio: 9 / 16;
    border-radius: var(--bkd-radius-lg);
    overflow: hidden;
    background: #000;
    scroll-snap-align: start;
    box-shadow: var(--bkd-shadow);
}

.bkd-shorts-row__item iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* --------------------------------------------------------------------------
   17. Admin-Only Sections
   -------------------------------------------------------------------------- */
.bkd-admin-only {
    background: var(--bkd-admin-bg) !important;
    border-left: 3px solid var(--bkd-admin-border);
    position: relative;
}

/* Visibility badge for admin-only elements */
.bkd-admin-only::after {
    content: 'Visible to admins & editors only';
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #8a6d00;
    background: rgba(255, 204, 2, 0.35);
    border: 1px solid var(--bkd-admin-border);
    border-radius: var(--bkd-radius-pill);
    padding: 3px 10px;
    line-height: 1.4;
    pointer-events: none;
}

/* Table rows: badge doesn't suit tr, use a subtler indicator instead */
.bkd-meta-table__table tr.bkd-admin-only::after {
    display: none;
}

.bkd-single-parwachan__issues {
    margin-bottom: 36px;
    padding: 20px 24px;
    padding-top: 36px; /* space for the badge */
    border-radius: var(--bkd-radius);
    border: 1px solid var(--bkd-admin-border);
}

.bkd-single-parwachan__issues h2 {
    border-bottom-color: var(--bkd-admin-border);
}

/* --------------------------------------------------------------------------
   18. Single — Excerpt
   -------------------------------------------------------------------------- */
.bkd-single-parwachan__excerpt {
    margin-bottom: 36px;
    padding: 24px 28px;
    background: var(--bkd-bg-warm);
    border-left: 3px solid var(--bkd-accent);
    border-radius: 0 var(--bkd-radius-lg) var(--bkd-radius-lg) 0;
    font-size: 15px;
    line-height: 1.85;
    color: var(--bkd-text);
    font-style: italic;
}

/* --------------------------------------------------------------------------
   19. Single — Comments
   -------------------------------------------------------------------------- */
.bkd-single-parwachan__comments {
    margin-bottom: 36px;
}

/* Card wrapper */
.bkd-single-parwachan__comments .comment-respond {
    border: 1px solid var(--bkd-border-light);
    border-radius: var(--bkd-radius-lg);
    padding: 32px;
    background: var(--bkd-white);
    box-shadow: var(--bkd-shadow);
}

/* Form title */
.bkd-single-parwachan__comments .comment-respond h3,
.bkd-single-parwachan__comments .comment-respond .comment-reply-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--bkd-text);
    margin: 0 0 6px;
    line-height: 1.4;
}

/* "Cancel reply" link */
.bkd-single-parwachan__comments .comment-reply-title small a {
    font-size: 13px;
    font-weight: 400;
    color: var(--bkd-accent);
    text-decoration: none;
    margin-left: 8px;
}

.bkd-single-parwachan__comments .comment-reply-title small a:hover {
    text-decoration: underline;
}

/* Notes / privacy text */
.bkd-single-parwachan__comments .comment-notes,
.bkd-single-parwachan__comments .comment-form p:last-of-type:not(.form-submit):not(.comment-form-comment):not(.comment-form-author):not(.comment-form-email):not(.comment-form-url) {
    font-size: 12px;
    color: var(--bkd-text-muted);
    line-height: 1.6;
    margin: 0 0 24px;
}

.bkd-single-parwachan__comments .comment-notes a {
    color: var(--bkd-accent);
    text-decoration: none;
}

.bkd-single-parwachan__comments .comment-notes a:hover {
    text-decoration: underline;
}

/* All form paragraphs — reset spacing */
.bkd-single-parwachan__comments .comment-form p {
    margin: 0 0 20px;
}

/* Labels — uppercase micro-label above inputs.
   Uses #respond ID to beat parent theme's #commentform selectors. */
#respond.comment-respond .comment-form label,
.bkd-single-parwachan__comments #commentform label {
    display: block !important;
    float: none !important;
    width: auto !important;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--bkd-text-light);
    margin-bottom: 6px;
    margin-right: 0;
    padding: 0;
    text-align: left;
}

#respond .comment-form .required {
    color: var(--bkd-accent);
    font-weight: 700;
}

/* Shared input / textarea styles.
   Uses #respond ID to beat parent theme. */
#respond.comment-respond .comment-form input[type="text"],
#respond.comment-respond .comment-form input[type="email"],
#respond.comment-respond .comment-form input[type="url"],
#respond.comment-respond .comment-form textarea,
.bkd-single-parwachan__comments #commentform input[type="text"],
.bkd-single-parwachan__comments #commentform input[type="email"],
.bkd-single-parwachan__comments #commentform input[type="url"],
.bkd-single-parwachan__comments #commentform textarea {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 14px !important;
    border: 1px solid var(--bkd-border) !important;
    border-radius: var(--bkd-radius) !important;
    background: var(--bkd-white);
    font-size: 14px;
    font-family: inherit;
    color: var(--bkd-text);
    transition: border-color var(--bkd-transition), box-shadow var(--bkd-transition);
    box-sizing: border-box;
    float: none !important;
}

.bkd-single-parwachan__comments .comment-form textarea {
    min-height: 160px;
    resize: vertical;
    line-height: 1.7;
}

#respond .comment-form input[type="text"]:focus,
#respond .comment-form input[type="email"]:focus,
#respond .comment-form input[type="url"]:focus,
#respond .comment-form textarea:focus {
    border-color: var(--bkd-accent);
    outline: none;
    box-shadow: 0 0 0 3px var(--bkd-accent-soft);
}

/* Author fields — 3-column grid on desktop */
#respond .comment-form .comment-form-author,
#respond .comment-form .comment-form-email,
#respond .comment-form .comment-form-url {
    display: inline-block !important;
    vertical-align: top;
    width: calc(33.333% - 10px) !important;
    margin-right: 14px;
    margin-bottom: 20px;
    float: none !important;
}

#respond .comment-form .comment-form-url {
    margin-right: 0;
}

/* Submit button — pill accent */
#respond .comment-form .form-submit {
    margin: 4px 0 0;
    padding-top: 4px;
}

#respond .comment-form .form-submit input[type="submit"],
#respond .comment-form .form-submit .submit {
    padding: 12px 36px;
    background: var(--bkd-accent);
    color: var(--bkd-white);
    border: 2px solid var(--bkd-accent);
    border-radius: var(--bkd-radius-pill);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background var(--bkd-transition), border-color var(--bkd-transition), transform var(--bkd-transition);
    white-space: nowrap;
    -webkit-appearance: none;
    appearance: none;
}

#respond .comment-form .form-submit input[type="submit"]:hover {
    background: var(--bkd-accent-hover);
    border-color: var(--bkd-accent-hover);
    transform: translateY(-1px);
}

#respond .comment-form .form-submit input[type="submit"]:focus-visible {
    outline: 2px solid var(--bkd-accent-border);
    outline-offset: 2px;
}

/* reCAPTCHA note */
.bkd-single-parwachan__comments .comment-form .comment-form-recaptcha,
.bkd-single-parwachan__comments .comment-form .g-recaptcha {
    margin-top: 4px;
    margin-bottom: 16px;
}

.bkd-single-parwachan__comments .comment-form .comment-form-recaptcha small,
.bkd-single-parwachan__comments .comment-form .comment-form-recaptcha p {
    font-size: 11px;
    color: var(--bkd-text-muted);
    line-height: 1.5;
}

.bkd-single-parwachan__comments .comment-form .comment-form-recaptcha a {
    color: var(--bkd-accent);
    text-decoration: none;
}

/* Comment list (if comments exist) */
.bkd-single-parwachan__comments .comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
}

.bkd-single-parwachan__comments .comment-list .comment {
    padding: 20px 0;
    border-bottom: 1px solid var(--bkd-border-light);
}

.bkd-single-parwachan__comments .comment-list .comment:last-child {
    border-bottom: none;
}

.bkd-single-parwachan__comments .comment-author {
    font-size: 14px;
    font-weight: 700;
    color: var(--bkd-text);
}

.bkd-single-parwachan__comments .comment-metadata {
    font-size: 12px;
    color: var(--bkd-text-muted);
    margin-top: 2px;
}

.bkd-single-parwachan__comments .comment-metadata a {
    color: var(--bkd-text-muted);
    text-decoration: none;
}

.bkd-single-parwachan__comments .comment-metadata a:hover {
    color: var(--bkd-accent);
}

.bkd-single-parwachan__comments .comment-content {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--bkd-text);
}

.bkd-single-parwachan__comments .reply a {
    font-size: 12px;
    font-weight: 600;
    color: var(--bkd-accent);
    text-decoration: none;
    margin-top: 8px;
    display: inline-block;
}

.bkd-single-parwachan__comments .reply a:hover {
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   20. Related Parwachans
   -------------------------------------------------------------------------- */
.bkd-related-parwachans {
    background: var(--bkd-bg-light);
    padding: 56px 0;
}

.bkd-related-parwachans > .bkd-container > h2 {
    text-align: center;
    margin-bottom: 32px;
}

/* --------------------------------------------------------------------------
   21. Legacy Meta Table (kept for backward compatibility)
   -------------------------------------------------------------------------- */
.bkd-meta-table {
    margin-bottom: 36px;
}

.bkd-meta-table__heading {
    font-size: 18px;
    font-weight: 700;
    color: var(--bkd-text);
    margin-bottom: 12px;
}

.bkd-meta-table__table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--bkd-border);
    border-radius: var(--bkd-radius);
    overflow: hidden;
}

.bkd-meta-table__table th,
.bkd-meta-table__table td {
    padding: 12px 16px;
    text-align: left;
    font-size: 14px;
    border-bottom: 1px solid var(--bkd-border-light);
    vertical-align: top;
}

.bkd-meta-table__table th {
    width: 180px;
    font-weight: 600;
    color: var(--bkd-white);
    background: var(--bkd-navy);
}

.bkd-meta-table__table td {
    color: var(--bkd-text);
    background: var(--bkd-white);
}

.bkd-meta-table__table tr:last-child th,
.bkd-meta-table__table tr:last-child td {
    border-bottom: none;
}

.bkd-meta-table__table td a {
    color: var(--bkd-accent);
    text-decoration: none;
}

.bkd-meta-table__table td a:hover {
    text-decoration: underline;
}

.bkd-meta-table__table tr.bkd-admin-only td {
    background: var(--bkd-admin-bg);
}

/* Inline admin badge (used inside table cells and other inline contexts) */
.bkd-admin-badge {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #8a6d00;
    background: rgba(255, 204, 2, 0.35);
    border: 1px solid var(--bkd-admin-border);
    border-radius: var(--bkd-radius-pill);
    padding: 2px 8px;
    line-height: 1.4;
    vertical-align: middle;
    margin-left: 6px;
}

/* --------------------------------------------------------------------------
   22. Responsive — Tablet (max-width: 980px)
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
    .bkd-hero__content h1 {
        font-size: 28px;
    }

    .bkd-hero--single h1 {
        font-size: 26px;
    }

    .bkd-hero__title-sub {
        font-size: 17px;
    }

    .bkd-parwachan-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .bkd-filter-form__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bkd-single-parwachan__layout {
        grid-template-columns: 1fr;
    }

    .bkd-single-parwachan__sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .bkd-gurbani-panel__details {
        grid-template-columns: repeat(2, 1fr);
    }

    .bkd-meta-table__table th {
        width: 150px;
    }

    .bkd-shorts-row__item {
        flex: 0 0 180px;
    }

    .bkd-media-hero__play {
        width: 68px;
        height: 68px;
    }

    .bkd-media-hero__play-icon {
        border-width: 12px 0 12px 20px;
    }
}

/* --------------------------------------------------------------------------
   23. Responsive — Mobile (max-width: 767px)
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .bkd-hero {
        min-height: 200px;
    }

    .bkd-hero__content {
        padding: 36px 16px;
    }

    .bkd-hero--single .bkd-hero__content {
        padding: 32px 16px 28px;
    }

    .bkd-hero__content h1 {
        font-size: 24px;
    }

    .bkd-hero--single h1 {
        font-size: 22px;
    }

    .bkd-hero__title-sub {
        font-size: 15px;
        margin-top: 4px;
    }

    .bkd-hero__divider {
        margin: 14px 0 18px;
        width: 32px;
    }

    .bkd-hero__byline {
        font-size: 13px;
        margin-top: 10px;
    }

    .bkd-hero__content p {
        font-size: 14px;
    }

    .bkd-parwachan-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .bkd-filter-form__top {
        flex-direction: column;
    }

    .bkd-filter-form__toggle {
        align-self: flex-start;
    }

    .bkd-filter-form__grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .bkd-filter-form__actions {
        flex-direction: column;
        width: 100%;
    }

    .bkd-filter-form__submit {
        width: 100%;
        text-align: center;
    }

    .bkd-single-parwachan__layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .bkd-single-parwachan__sidebar {
        display: block;
    }

    .bkd-gurbani-panel {
        padding: 20px;
    }

    .bkd-gurbani-panel__shabad-pa {
        font-size: 17px;
    }

    .bkd-gurbani-panel__details {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .bkd-details-card {
        margin-bottom: 20px;
    }

    /* Stack meta table on mobile */
    .bkd-meta-table__table,
    .bkd-meta-table__table thead,
    .bkd-meta-table__table tbody,
    .bkd-meta-table__table tr,
    .bkd-meta-table__table th,
    .bkd-meta-table__table td {
        display: block;
        width: 100%;
    }

    .bkd-meta-table__table th {
        border-bottom: none;
        padding-bottom: 4px;
    }

    .bkd-meta-table__table td {
        padding-top: 4px;
        padding-bottom: 16px;
    }

    .bkd-shorts-row__item {
        flex: 0 0 160px;
    }

    .bkd-single-parwachan {
        padding: 24px 0 10px;
    }

    .bkd-single-parwachan h2 {
        font-size: 18px;
    }

    .bkd-single-parwachan__desc-en {
        font-size: 15px;
    }

    .bkd-single-parwachan__desc-pa {
        font-size: 16px;
    }

    .bkd-audio-player {
        padding: 16px;
    }

    /* Comment form: stack author fields on mobile */
    #respond .comment-form .comment-form-author,
    #respond .comment-form .comment-form-email,
    #respond .comment-form .comment-form-url {
        display: block !important;
        width: 100% !important;
        margin-right: 0;
    }

    .bkd-single-parwachan__comments .comment-respond {
        padding: 20px;
    }

    .bkd-media-hero__play {
        width: 60px;
        height: 60px;
    }

    .bkd-media-hero__play-icon {
        border-width: 10px 0 10px 17px;
        margin-left: 3px;
    }

    .bkd-media-hero__play::before {
        inset: -4px;
    }

    /* Video modal: use near-full width on mobile */
    .bkd-video-modal__stage {
        width: 96vw;
    }

    .bkd-video-modal__close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }

    /* Audio player: hide volume slider on mobile, keep mute toggle */
    .bkd-audio-player__vol-wrap {
        display: none;
    }

    .bkd-audio-player__row--secondary {
        gap: 10px;
    }

    .bkd-audio-player__time {
        min-width: auto;
    }

    .bkd-pagination .page-numbers {
        min-width: 36px;
        height: 36px;
        padding: 0 8px;
        font-size: 13px;
    }

    .bkd-breadcrumbs__list li {
        font-size: 12px;
    }

    .bkd-container {
        width: 90%;
    }
}
