/* =============================================================
   Product card — LIST/ROW style (new design: theme-aware via CSS variables, falls back to the old light colours on pages
   that don't define them; like button removed). Client-approved design: play icon centered on the
   thumbnail, ±5s skip + a matching play/pause button, a non-clickable play-count pill,
   a public like button, and a dark "অর্ডার করুন →" pill that fills the rest of the row
   and opens the product page (no separate price pill, no round "view product" icon).
   Used on: Home, Search, Category (all via includes/product-card.php,
   all wrapped by a .product-grid container) — and a stripped-down version
   (skip buttons only, no play-count/like/order) on the Checkout page's Order review.
   ============================================================= */

.product-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ---------- Row (= .row in the mockup), now its own boxed card ---------- */
.product-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: var(--card, #ffffff);
    border: 1px solid var(--line, #e3edf7);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(11, 27, 47, 0.03);
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
    opacity: 0;
    animation: pcCardIn 0.5s cubic-bezier(.2, .8, .2, 1) forwards;
}
.product-card:hover {
    box-shadow: 0 14px 30px -12px var(--glow, rgba(11, 27, 47, 0.14));
    border-color: color-mix(in srgb, var(--acc, #2563eb) 45%, var(--line, #e3edf7));
    transform: translateY(-3px);
}
/* soft light sweep across the card on hover */
.product-card::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(110deg, transparent 40%, color-mix(in srgb, var(--acc, #2563eb) 10%, transparent) 50%, transparent 60%);
    transform: translateX(-120%); transition: transform 0.7s ease;
}
.product-card:hover::after { transform: translateX(120%); }
.product-grid > .product-card:nth-child(1) { animation-delay: 0.05s; }
.product-grid > .product-card:nth-child(2) { animation-delay: 0.1s; }
.product-grid > .product-card:nth-child(3) { animation-delay: 0.15s; }
.product-grid > .product-card:nth-child(4) { animation-delay: 0.2s; }
.product-grid > .product-card:nth-child(5) { animation-delay: 0.25s; }
.product-grid > .product-card:nth-child(6) { animation-delay: 0.3s; }
.product-grid > .product-card:nth-child(n+7) { animation-delay: 0.32s; }
@keyframes pcCardIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- Thumbnail (= .thumb) ---------- */
.pc-thumb {
    position: relative;
    flex: none;
    width: 64px;
    height: 64px;
    border-radius: 12px;
    overflow: hidden;
    background: #eeedf0;
    cursor: pointer;
    border: none;
    padding: 0;
    display: block;
}
.pc-thumb-static { cursor: default; }
.pc-thumb-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-thumb video.pc-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pc-thumb-placeholder {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    background: #eeedf0; color: #b9b7bd; font-size: 1.2rem;
}

.pc-dur {
    position: absolute; left: 4px; bottom: 4px;
    background: rgba(0, 0, 0, 0.62); color: #f2efe9;
    font-size: 9.5px; font-weight: 600;
    padding: 1.5px 5px; border-radius: 20px;
    pointer-events: none;
}

/* Dark overlay shown over the thumbnail while playing (= .thumb.playing::after) */
.pc-thumb.is-playing::after {
    content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.4);
}

/* Play icon centered on the thumbnail — RED, with a blinking red pulse. Fades out while
   playing (the wave indicator takes over) and the blink animation is switched off then. */
.pc-thumb-play {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    color: #e11d2e; pointer-events: none; z-index: 1;
    opacity: 1; transition: opacity 0.25s ease;
}
/* Red pulse ring behind the icon */
.pc-thumb-play::before {
    content: ""; position: absolute; top: 50%; left: 50%;
    width: 30px; height: 30px; margin: -15px 0 0 -15px;
    border-radius: 50%; background: rgba(225, 29, 46, 0.35);
    animation: pcPlayPulse 1.4s ease-out infinite;
}
.pc-thumb-play svg {
    position: relative; width: 22px; height: 22px;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.9)) drop-shadow(0 1px 3px rgba(0, 0, 0, 0.45));
    animation: pcPlayBlink 1.2s ease-in-out infinite;
}
.pc-thumb.is-playing .pc-thumb-play { opacity: 0; }
.pc-thumb.is-playing .pc-thumb-play::before,
.pc-thumb.is-playing .pc-thumb-play svg { animation: none; }
@keyframes pcPlayBlink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(0.88); }
}
@keyframes pcPlayPulse {
    0% { transform: scale(0.6); opacity: 0.9; }
    100% { transform: scale(1.7); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .pc-thumb-play::before, .pc-thumb-play svg { animation: none; }
}

/* Centered wave/equalizer indicator, only visible while playing */
.pc-wave {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    display: none; align-items: center; gap: 1.6px; z-index: 2;
}
.pc-thumb.is-playing .pc-wave { display: flex; }
.pc-wave span { width: 2px; border-radius: 2px; background: #fff; box-shadow: 0 0 4px rgba(0, 0, 0, 0.5); }
.pc-wave span:nth-child(1) { height: 7px; }
.pc-wave span:nth-child(2) { height: 16px; }
.pc-wave span:nth-child(3) { height: 10px; }
.pc-wave span:nth-child(4) { height: 22px; }
.pc-wave span:nth-child(5) { height: 13px; }
.pc-wave span:nth-child(6) { height: 26px; }
.pc-wave span:nth-child(7) { height: 12px; }
.pc-wave span:nth-child(8) { height: 20px; }
.pc-wave span:nth-child(9) { height: 9px; }
.pc-wave span:nth-child(10) { height: 17px; }
.pc-wave span:nth-child(11) { height: 8px; }
.pc-wave span:nth-child(12) { height: 14px; }
.pc-thumb.is-playing .pc-wave span { animation-name: pcWaveBounce; animation-iteration-count: infinite; animation-timing-function: ease-in-out; }
.pc-thumb.is-playing .pc-wave span:nth-child(1) { animation-duration: .7s; animation-delay: 0s; }
.pc-thumb.is-playing .pc-wave span:nth-child(2) { animation-duration: 1.05s; animation-delay: .08s; }
.pc-thumb.is-playing .pc-wave span:nth-child(3) { animation-duration: .85s; animation-delay: .02s; }
.pc-thumb.is-playing .pc-wave span:nth-child(4) { animation-duration: 1.2s; animation-delay: .16s; }
.pc-thumb.is-playing .pc-wave span:nth-child(5) { animation-duration: .9s; animation-delay: .05s; }
.pc-thumb.is-playing .pc-wave span:nth-child(6) { animation-duration: 1.3s; animation-delay: .22s; }
.pc-thumb.is-playing .pc-wave span:nth-child(7) { animation-duration: .75s; animation-delay: .1s; }
.pc-thumb.is-playing .pc-wave span:nth-child(8) { animation-duration: 1.1s; animation-delay: .14s; }
.pc-thumb.is-playing .pc-wave span:nth-child(9) { animation-duration: .8s; animation-delay: .03s; }
.pc-thumb.is-playing .pc-wave span:nth-child(10) { animation-duration: 1s; animation-delay: .18s; }
.pc-thumb.is-playing .pc-wave span:nth-child(11) { animation-duration: .65s; animation-delay: .07s; }
.pc-thumb.is-playing .pc-wave span:nth-child(12) { animation-duration: .95s; animation-delay: .12s; }
@keyframes pcWaveBounce {
    0%, 100% { transform: scaleY(0.3); }
    50% { transform: scaleY(1); }
}

/* ---------- Content: title / description / controls (= .content) ----------
   container-type lets the control row below react to ITS OWN available width (not the
   viewport), which matters because .pc-content's width also depends on the thumbnail
   size and any remove button next to it — see the @container rule near .pc-ctrl-row. */
.pc-content { flex: 1; min-width: 0; container-type: inline-size; }

.pc-title-link { display: block; text-decoration: none; color: inherit; }

.pc-title-line { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; min-width: 0; max-width: 100%; overflow: hidden; }
.pc-title {
    color: var(--txt, #1c1b1f); font-weight: 600; font-size: 15px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    flex: 1; min-width: 0;
}

.pc-desc {
    margin-top: 3px; color: var(--mut, #6f6d75); font-size: 12.5px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}

/* ---------- Playback control strip (= .ctrl-row) ---------- */
.pc-ctrl-row { margin-top: 10px; display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; }

.pc-skip-btn {
    display: flex; align-items: center; gap: 3px;
    border: none; background: var(--card2, #f0eff2); color: var(--mut, #57555e);
    border-radius: 999px; padding: 6px 7px; cursor: pointer; flex: none;
    transition: transform 0.1s ease;
}
.pc-skip-btn:active { transform: scale(0.9); background: var(--line, #e2e1e5); }
.pc-skip-btn svg { width: 14px; height: 14px; }
.pc-skip-num { font-size: 10.5px; font-weight: 700; color: inherit; white-space: nowrap; }

/* Tight rows (narrow content column, e.g.
   a small phone): shrink gaps/padding/icons so back-5s, play, fwd-5s, plays and like all
   still fit on one line without wrapping. */
@container (max-width: 330px) {
    .pc-ctrl-row { gap: 3px; }
    .pc-skip-btn, .pc-play-btn { padding: 6px 5px; gap: 2px; }
    .pc-skip-btn svg, .pc-play-btn svg { width: 12px; height: 12px; }
    .pc-skip-num { font-size: 10px; }
    .pc-plays { padding: 5px 6px; gap: 2px; }
    .pc-plays svg { width: 12px; height: 12px; }
    .pc-plays-count { font-size: 10.5px; }
}

/* Play/pause button (= .pb in the mockup) — same grey pill as the skip buttons, sitting
   between them. Drives/reflects the exact same playback as tapping the thumbnail (see
   footer.php); .is-on = currently playing, swaps to the pause glyph in red. */
.pc-play-btn {
    flex: none; display: flex; align-items: center; justify-content: center;
    border: none; background: var(--card2, #f0eff2); color: var(--mut, #57555e);
    border-radius: 999px; padding: 6px 7px; cursor: pointer;
    transition: transform 0.1s ease;
}
.pc-play-btn:active { transform: scale(0.9); background: var(--line, #e2e1e5); }
.pc-play-btn svg { width: 14px; height: 14px; }
.pc-play-btn .pc-pause-ic { display: none; }
.pc-play-btn.is-on .pc-play-ic { display: none; }
.pc-play-btn.is-on .pc-pause-ic { display: block; }
.pc-play-btn.is-on { background: var(--acc, #e11d2e); color: #fff; }

/* Play-count pill (= .vw in the mockup) — non-clickable, just shows how many times the
   sample has been played. */
.pc-plays {
    flex: none; display: flex; align-items: center; gap: 3px; white-space: nowrap;
    border-radius: 999px; padding: 5px 9px; font-size: 10.5px; font-weight: 700;
    background: var(--card2, #f4f6fa); border: 1px solid var(--line, #dfe5ee); color: var(--mut, #5f6c80); cursor: default;
    user-select: none;
}
.pc-plays svg { width: 13px; height: 13px; }


/* ---------- Order button (= .ob in the mockup) ----------
   Dark pill that closes the control row: opens the full product page (same destination
   the old "view product" icon and the title link go to). It fills every bit of space the
   skip/play/plays/like items leave behind (flex: 1 1 0) — never a tiny tap target — and
   is itself a container: as the row gets tighter (like/plays counts growing, or a small
   screen), its own two text spans drop out one at a time so the pill keeps fitting on
   one line: "অর্ডার করুন →" → "অর্ডার →" → just "→". The arrow gets a small periodic
   nudge to draw the eye toward it; disabled for reduced-motion. */
.pc-order-btn {
    flex: 1 1 0; min-width: 30px;
    display: flex; align-items: center; justify-content: center; gap: 4px;
    background: var(--pill, #0b1b2f); color: #fff; text-decoration: none;
    border-radius: 999px; padding: 6px 10px; font-size: 11px; font-weight: 700;
    white-space: nowrap; overflow: hidden;
    container-type: inline-size;
    position: relative; isolation: isolate;
    transition: transform 0.15s ease;
}
.pc-order-btn:active { transform: scale(0.95); }
/* rotating glow along the button's border */
.pc-order-btn::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; z-index: -1; pointer-events: none;
    background: conic-gradient(from var(--a), transparent 0 40deg, var(--acc, #2563eb) 90deg, transparent 140deg 220deg, var(--acc, #2563eb) 270deg, transparent 320deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    animation: psBeamSpin 3.2s linear infinite;
}
.pc-order-btn svg { width: 12px; height: 12px; flex: none; animation: pcOrderNudge 1.6s ease-in-out infinite; }
@keyframes pcOrderNudge {
    0%, 55%, 100% { transform: translateX(0); }
    70% { transform: translateX(4px); }
    85% { transform: translateX(0); }
    92% { transform: translateX(3px); }
}
@media (prefers-reduced-motion: reduce) {
    .pc-order-btn svg, .pc-order-btn::before { animation: none; }
    .product-card { opacity: 1; animation: none; }
    .product-card::after { display: none; }
}
@container (max-width: 54px) { .pc-order-t1 { display: none; } }
/* ---------- Empty state ---------- */
.empty-results {
    padding: 2.5rem 1rem; text-align: center; color: var(--mut, #516a85); font-size: 0.9rem;
    display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
}
.empty-results > i { font-size: 1.8rem; color: var(--line, #c2d2e5); }
.empty-results .shop-link { color: var(--acc, #2563eb); font-weight: 600; text-decoration: none; }

@media (max-width: 480px) {
    .product-card { padding: 12px 14px; gap: 10px; }
    .pc-thumb { width: 56px; height: 56px; }
    .pc-title { font-size: 14px; }
}

/* ---------- Admin product picker (admin/custom-orders.php) keeps its old plain look ---------- */
.product-card.pc-pick::after { display: none; }
.pc-order-btn.pc-pick-btn::before { display: none; }


/* =============================================================
   নতুন কার্ড (includes/product-card.php) + হোম হেডলাইন (.hh)
   রং: অডিও = নীল, ভিডিও = অ্যাম্বার, অর্ডার = গাঢ় নেভি (ডার্ক থিমে হালকা)।
   অ্যানিমেশন শুধু প্লে আইকনের চারপাশের ধীর আংটিতে (কম-নড়াচড়া সেটিংয়ে বন্ধ)।
   পুরনো .pc-* রুলগুলো চেকআউট/পেমেন্ট পেজের জন্য অবিকল রাখা আছে।
   ============================================================= */
.pcx, .hh {
    --cx-au: #2563eb; --cx-aubg: #e6eefb; --cx-vi: #b45f06; --cx-vibg: #fdf0dc;
    --cx-ordbg: #0b1b2f; --cx-ordtx: #ffffff;
}
html[data-theme="dark"] .pcx, html[data-theme="dark"] .hh {
    --cx-au: #6ea0ff; --cx-aubg: #1a2f55; --cx-vi: #f0b25a; --cx-vibg: #3a2c14;
    --cx-ordbg: #e8f0fa; --cx-ordtx: #0b1b2f;
}
.ps-bn, .ps-en { display: inline; }
html[lang="en"] .ps-bn { display: none; }
html:not([lang="en"]) .ps-en { display: none; }

.product-card.pcx {
    display: block; padding: 12px; border-radius: 16px; scroll-margin-top: 84px;
}
.product-card.pcx:hover { transform: none; box-shadow: 0 2px 8px rgba(11, 27, 47, 0.03); border-color: var(--line, #e3edf7); }
.product-card.pcx::after { display: none; }

.pcx-head { display: flex; align-items: center; gap: 10px; }
.pcx-cov {
    flex: none; width: 52px; height: 52px; border-radius: 12px; overflow: hidden; display: grid; place-items: center;
    background: var(--cx-aubg); color: var(--cx-au); font-size: 20px; text-decoration: none;
}
.pcx-cov img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcx-cov-v { background: var(--cx-vibg); color: var(--cx-vi); }
.pcx-cov-av { background: linear-gradient(135deg, var(--cx-aubg) 50%, var(--cx-vibg) 50%); color: var(--txt, #0b1b2f); }
.pcx-name {
    flex: 1; min-width: 0; color: var(--txt, #0b1b2f); font-weight: 600; font-size: 15px; line-height: 1.4; text-decoration: none;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word;
}
.pcx-head .pc-remove-form { align-self: center; }

/* তিনটি সমান বাটন */
.pcx-acts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.pcx-btn, .pcx-ord {
    height: 38px; min-width: 0; padding: 0 6px; border-radius: 999px; border: 1px solid transparent;
    display: flex; align-items: center; justify-content: center; gap: 5px;
    font: inherit; font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden;
    text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.pcx-btn:active, .pcx-ord:active { transform: scale(0.96); }
.pcx-a { --rc: var(--cx-au); background: var(--cx-aubg); color: var(--cx-au); }
.pcx-v { --rc: var(--cx-vi); background: var(--cx-vibg); color: var(--cx-vi); }
.pcx-a.act { background: var(--cx-au); color: #fff; }
.pcx-v.act { background: var(--cx-vi); color: #fff; }
html[data-theme="dark"] .pcx-v.act { color: #2a1d08; }
html[data-theme="dark"] .pcx-a.act { color: #0b1b2f; }
.pcx-pi {
    flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
    background: var(--rc); color: #fff;
}
html[data-theme="dark"] .pcx-pi { color: #0b1b2f; }
.pcx-pi svg { width: 10px; height: 10px; }
.pcx-pi .pcx-ic-x { display: none; }
.pcx-btn.act .pcx-pi { background: #fff; color: var(--rc); }
.pcx-btn.act .pcx-ic-play { display: none; }
.pcx-btn.act .pcx-ic-x { display: block; }
.pcx-btn:not(.act) .pcx-pi { animation: pcxRing 2.2s ease-out infinite; }
@keyframes pcxRing {
    0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--rc) 55%, transparent); }
    70%, 100% { box-shadow: 0 0 0 8px transparent; }
}
.pcx-l { overflow: hidden; text-overflow: ellipsis; }
/* অডিও বাটন: প্লে আইকনের জায়গায় ৩টা লাফানো ইকুয়ালাইজার দাগ (প্লেয়ার খুললে আগের মতো ✕ আইকন)। */
.pcx-eq { display: flex; align-items: flex-end; justify-content: center; gap: 2px; height: 10px; }
.pcx-eq i { width: 2.5px; height: 3px; border-radius: 2px; background: currentColor; animation: pcxEq .9s ease-in-out infinite; }
.pcx-eq i:nth-child(2) { animation-delay: .2s; }
.pcx-eq i:nth-child(3) { animation-delay: .4s; }
@keyframes pcxEq { 0%, 100% { height: 3px; } 50% { height: 10px; } }
.pcx-a .pcx-eq { display: none; }
.pcx-a:not(.act) .pcx-eq { display: flex; }
.pcx-a:not(.act) .pcx-ic-play { display: none; }
/* ইংরেজি লেখা (\"Audio Listen\" / \"Video Watch\") বড়: বাটনে জায়গা কম হলে কেটে ফেলার বদলে দুই লাইনে ভাঙে। */
html[lang="en"] .pcx-btn { font-size: 12px; line-height: 1.15; }
html[lang="en"] .pcx-btn .pcx-l { white-space: normal; text-overflow: clip; text-align: center; min-width: 0; }
@media (max-width: 380px) { html[lang="en"] .pcx-btn { font-size: 11px; gap: 4px; padding: 0 4px; } }
@media (prefers-reduced-motion: reduce) {
    .pcx-ord::after { animation: none; display: none; }
    .pcx-eq i { animation: none; height: 7px; }
    .pcx-btn:not(.act) .pcx-pi { animation: none; }
}
.pcx-l2 { display: none; }

/* Order review / payment page: one wide button (only the ordered format), label on a single line. */
.pcx-acts-one { grid-template-columns: minmax(0, 1fr); }
.pcx-acts-one .pcx-btn, html[lang="en"] .pcx-acts-one .pcx-btn { font-size: 14px; height: 40px; }
html[lang="en"] .pcx-acts-one .pcx-btn .pcx-l { white-space: nowrap; text-overflow: ellipsis; }
.pcx-btn.act .pcx-l1 { display: none; }
.pcx-btn.act .pcx-l2 { display: inline; }

.pcx-ord { background: var(--cx-ordbg); color: var(--cx-ordtx); container-type: inline-size; position: relative; isolation: isolate; }
/* অর্ডার বাটনে আলোর ঝলক: কয়েক সেকেন্ড পরপর হালকা একটা আলো বাটনের ওপর দিয়ে ডান দিকে সরে যায়। */
.pcx-ord::after {
    content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 28%; z-index: -1; pointer-events: none;
    background: rgba(255, 255, 255, .38); transform: skewX(-20deg);
    animation: pcxShine 2.8s ease-in-out infinite;
}
html[data-theme="dark"] .pcx-ord::after { background: rgba(37, 99, 235, .22); }
@keyframes pcxShine { 0%, 50% { left: -40%; } 100% { left: 130%; } }
.pcx-ord svg { width: 14px; height: 14px; flex: none; }
@container (max-width: 92px) { .pcx-t2 { display: none; } }
@container (max-width: 54px) { .pcx-t1 { display: none; } }

/* কার্ডের ওপরের প্লেয়ার */
.pcx-slot:not(:empty) { margin-bottom: 10px; }
.pcx-pl { position: relative; }
.pcx-stage {
    position: relative; height: min(56vw, 330px); border-radius: 12px; overflow: hidden; background: #000;
    display: grid; place-items: center; color: #fff;
}
/* প্লেয়ারের পর্দা সবসময় ১৬:৯। ভিডিও যে মাপেরই হোক এর ভেতরেই পুরোটা (কাটছাঁট ছাড়া) দেখায়; ফুলস্ক্রিনে পুরো পর্দায় বড় হয়। */
.pcx-stage-v, .pcx-stage-a { height: auto; aspect-ratio: 16 / 9; width: 100%; }
.pcx-stage-v .pcx-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.pcx-stage.big { height: auto; aspect-ratio: auto; min-height: min(78vh, 620px); }
.pcx-stage:fullscreen { height: 100vh; width: 100vw; max-height: none; aspect-ratio: auto; border-radius: 0; margin: 0; }
.pcx-stage-a { background: linear-gradient(120deg, #14284d, #2b5bd0, #14284d); }
.pcx-media { width: 100%; height: 100%; object-fit: contain; background: #000; }
audio.pcx-media { display: none; }
.pcx-aimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }
.pcx-adisc { font-size: 64px; opacity: .85; }
.pcx-tag { position: absolute; left: 8px; top: 8px; z-index: 3; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.pcx-tag-v { background: #f0b25a; color: #2a1d08; }
.pcx-tag-a { background: #8fb3ff; color: #0b1b2f; }
.pcx-cx { position: absolute; right: 6px; top: 6px; z-index: 4; background: rgba(0, 0, 0, .5); color: #fff; }
.pcx-cb { background: none; border: 0; color: inherit; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; flex: none; cursor: pointer; padding: 0; }
.pcx-cb svg { width: 18px; height: 18px; }
.pcx-cen { position: absolute; inset: 0; display: none; place-items: center; z-index: 1; pointer-events: none; }
.pcx-pl:not(.run) .pcx-cen { display: grid; }
.pcx-cen button {
    pointer-events: auto; width: 56px; height: 56px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: #0b1b2f;
    display: grid; place-items: center; cursor: pointer; animation: pcxRingW 2.2s ease-out infinite;
}
.pcx-cen svg { width: 24px; height: 24px; }
@keyframes pcxRingW {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .55); }
    70%, 100% { box-shadow: 0 0 0 14px rgba(255, 255, 255, 0); }
}
.pcx-ctl {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; align-items: center; gap: 6px;
    padding: 22px 8px 6px; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); color: #fff;
}
.pcx-tx { font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pcx-sk { position: relative; flex: 1; height: 26px; display: flex; align-items: center; touch-action: none; cursor: pointer; }
.pcx-sk::before { content: ""; position: absolute; left: 0; right: 0; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .3); }
.pcx-sk i { position: absolute; left: 0; height: 5px; border-radius: 3px; width: calc(var(--w, 0) * 1%); background: #fff; }
.pcx-sk b { position: absolute; left: calc(var(--w, 0) * 1%); width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #fff; }
.pcx-cb:focus-visible, .pcx-sk:focus-visible, .pcx-btn:focus-visible, .pcx-ord:focus-visible { outline: 2px solid var(--cx-au); outline-offset: 2px; }
.pcx-soon .pcx-stage-v { background: linear-gradient(120deg, #2a1d08, #8a5412, #2a1d08); }
.pcx-soon-t { text-align: center; padding: 0 16px; }
.pcx-soon-t b { display: block; font-size: 16px; }
.pcx-soon-t span { display: block; font-size: 12px; opacity: .92; margin-top: 4px; }
@media (prefers-reduced-motion: reduce) {
    .pcx-btn:not(.act) .pcx-pi, .pcx-cen button { animation: none; }
}

/* হোম পেজের চলমান হেডলাইন (সার্চ বারের জায়গায়) — একটা লাইন, লেখা বাম থেকে ডানে ধীরে ধীরে চলে।
   লেখা Admin → Settings থেকে বদলায়। গতি বদলাতে index.php-এর SPEED (px/সেকেন্ড) পাল্টান। */
.hh {
    display: flex; align-items: center; gap: 10px; margin: 6px 0 4px; padding: 0 14px 0 8px; height: 44px; /* নিচের ফাঁক: ক্যাটাগরি বারের নিজস্ব ফাঁকসহ মোট স্বাভাবিক মাপ; বাড়াতে 4px বদলান */
    border-radius: 999px; border: 1px solid var(--line, #e3edf7); overflow: hidden;
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--cx-au) 13%, transparent), color-mix(in srgb, var(--cx-vi) 13%, transparent)),
        var(--card, #fff);
}
.hh-ic {
    flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px;
    background: var(--cx-au); color: #fff;
}
html[data-theme="dark"] .hh-ic { color: #0b1b2f; }
.hh-view {
    flex: 1; min-width: 0; overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
}
.hh, .hh * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
.hh-view, .hh-track { direction: ltr; }
.hh-track { display: flex; width: max-content; will-change: transform; }
.hh-item {
    flex: none; white-space: nowrap; padding-right: 44px; position: relative;
    font-size: 14.5px; font-weight: 700; line-height: 44px; color: var(--txt, #0b1b2f);
}
.hh-item::after {
    content: ""; position: absolute; right: 18px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%;
    background: var(--cx-vi);
}
/* ডান → বাম: লেখা ডান প্রান্ত থেকে ঢুকে বাম প্রান্ত দিয়ে বেরোয়। উল্টো করতে from/to অদলবদল করুন। */
@keyframes hhMoveRTL { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(calc(var(--hh-w, 0px) * -1), 0, 0); } }
.hh:hover .hh-track, .hh:active .hh-track { animation-play-state: paused !important; }
.hh-still .hh-track { width: 100%; }
.hh-still .hh-item { overflow: hidden; text-overflow: ellipsis; max-width: 100%; padding-right: 0; }
.hh-still .hh-item::after { display: none; }

/* Players: no long-press "save / copy" callout and no selection/drag on the player surface (silent — nothing is shown to the visitor). */
.pcx-stage, .pcx-slot, .pcx-media { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; -webkit-user-drag: none; }


/* ===== প্লেয়ার খোলা থাকলে বাটনে ✕ এর বদলে মূল্য ===== */
.pcx:not(.pcx-order) .pcx-btn.act .pcx-pi { display: none; }
.pcx:not(.pcx-order) .pcx-btn.act .pcx-price { font-size: 14px; font-weight: 800; letter-spacing: .2px; font-variant-numeric: tabular-nums; }
html[lang="en"] .pcx:not(.pcx-order) .pcx-btn.act .pcx-price { font-size: 13px; }

/* ===== প্লেয়ারের নিচে ♥ লাইক বার ===== */
.pcx-meta { display: flex; align-items: center; justify-content: flex-end; padding: 8px 2px 0; }
.pcx-like {
    display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px;
    border: 1px solid var(--line, #e3edf7); background: var(--card2, #f0f4f9); color: var(--mut, #546a85);
    font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; -webkit-tap-highlight-color: transparent;
    transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.pcx-like svg { width: 16px; height: 16px; fill: none; transition: fill .2s, transform .25s; }
.pcx-like:active { transform: scale(.94); }
.pcx-like .pcx-like-n { font-variant-numeric: tabular-nums; min-width: 1ch; color: var(--txt, #0b1b2f); }
.pcx-like.on { background: rgba(239, 68, 68, .12); border-color: rgba(239, 68, 68, .45); color: #ef4444; }
.pcx-like.on svg { fill: currentColor; transform: scale(1.15); }
.pcx-like.on .pcx-like-n { color: #ef4444; }
.pcx-like:focus-visible { outline: 2px solid var(--cx-au, #2563eb); outline-offset: 2px; }
