/* SonicEngine Design Styles for Producer Downloads Plugin */

body.pd-page-active {
    font-family: 'Space Grotesk', sans-serif;
}

.pd-wrapper {
    --primary: #256af4;
    --accent-purple: #8b5cf6;
    --background-dark: #f8f9fa;
    --background-light: #ffffff;
    --card-dark: #ffffff;
    --text-light: #1a1d21;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    
    background: var(--background-dark);
    color: var(--text-light);
    min-height: 100vh;
    position: relative;
    width: 100%;
    max-width: none;
    overflow-x: visible;
}

.pd-wrapper:has(> .pd-hero-home) {
    background: transparent;
}

/* Glass effect utility */
.glass-effect {
    background: rgba(27, 31, 39, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(59, 67, 84, 0.5);
}

/* Neon glow hover effect */
.neon-glow:hover {
    box-shadow: 0 0 15px rgba(37, 106, 244, 0.4);
    border-color: var(--primary);
}

/* Hero Section — card style (taxonomy pages) */
.pd-hero {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.98) 100%);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border-light);
    margin-bottom: 2.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Homepage hero — full viewport width, transparent to inherit theme background */
.pd-hero-home {
    --pd-hero-visual-scale: 0.7;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-radius: 0;
    border: none;
    background: transparent;
    min-height: auto;
    padding: 0;
    margin-bottom: 2.5rem;
    text-align: left;
    box-shadow: none;
    justify-content: flex-start;
}

/* Break out of theme content padding (GeneratePress, page content, etc.) */
.one-container .site-content > .pd-wrapper > .pd-hero-home,
.separate-containers .site-content > .pd-wrapper > .pd-hero-home,
.entry-content > .pd-wrapper > .pd-hero-home {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.pd-hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    padding-top: 3rem;
    padding-bottom: 4.75rem;
}

.pd-hero-layout {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    align-items: stretch;
}

.pd-hero-home--has-visual .pd-hero-layout {
    gap: 2.75rem;
}

.pd-hero-content {
    max-width: 42rem;
    position: relative;
    z-index: 10;
}

.pd-hero-home .pd-hero-content {
    max-width: 44rem;
    margin: 0;
    text-align: left;
}

.pd-hero-home .pd-hero-buttons {
    justify-content: flex-start;
    margin-bottom: 0.5rem;
    padding-bottom: 1.75rem;
}

/* Hero image showcase — size controlled via --pd-hero-visual-scale from Customizer */
.pd-hero-visual {
    position: relative;
    width: 100%;
    max-width: calc(520px * var(--pd-hero-visual-scale, 0.7));
    margin: 0 auto;
    min-height: calc(260px * var(--pd-hero-visual-scale, 0.7));
}

.pd-hero-visual-main {
    position: relative;
    z-index: 2;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.12);
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pd-hero-visual-main img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.pd-hero-visual-accent {
    position: absolute;
    z-index: 3;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 0.875rem;
    padding: 0.5rem;
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.14);
    overflow: hidden;
}

.pd-hero-visual-accent img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pd-hero-visual-accent--one {
    width: 34%;
    aspect-ratio: 1 / 1;
    left: -4%;
    bottom: 6%;
}

.pd-hero-visual-accent--two {
    width: 30%;
    aspect-ratio: 1 / 1;
    right: -2%;
    top: 10%;
}

/* Homepage hero image motion */
@keyframes pd-hero-visual-in {
    from {
        opacity: 0;
        transform: translateY(22px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pd-hero-float-main {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pd-hero-float-accent-a {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-12px) rotate(-1.25deg);
    }
}

@keyframes pd-hero-float-accent-b {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-8px) rotate(1.25deg);
    }
}

.pd-hero-home--has-visual .pd-hero-visual-main {
    animation:
        pd-hero-visual-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) backwards,
        pd-hero-float-main 5.5s ease-in-out 0.85s infinite;
    will-change: transform;
}

.pd-hero-home--has-visual .pd-hero-visual-accent--one {
    animation:
        pd-hero-visual-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.12s backwards,
        pd-hero-float-accent-a 6.75s ease-in-out 0.97s infinite;
    will-change: transform;
}

.pd-hero-home--has-visual .pd-hero-visual-accent--two {
    animation:
        pd-hero-visual-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.24s backwards,
        pd-hero-float-accent-b 7.25s ease-in-out 1.09s infinite;
    will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
    .pd-hero-home--has-visual .pd-hero-visual-main,
    .pd-hero-home--has-visual .pd-hero-visual-accent {
        animation: none !important;
        will-change: auto;
    }
}

.pd-hero h1 {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.pd-hero-home h1 {
    font-size: clamp(2rem, 4.5vw, 3.75rem);
    margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
    .pd-hero h1 {
        font-size: 3.75rem;
    }

    .pd-hero-home h1 {
        font-size: clamp(2.5rem, 4vw, 4rem);
    }

    .pd-hero-inner {
        padding-top: 4rem;
        padding-bottom: 5.25rem;
    }

    .pd-hero-home--has-visual .pd-hero-layout {
        display: grid;
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
        gap: 3.5rem;
        align-items: center;
    }

    .pd-hero-home--has-visual .pd-hero-visual {
        max-width: calc(480px * var(--pd-hero-visual-scale, 0.7));
        width: 100%;
        margin: 0 auto;
        min-height: calc(320px * var(--pd-hero-visual-scale, 0.7));
        justify-self: center;
    }

    .pd-hero-home .pd-hero-buttons {
        padding-bottom: 2rem;
    }
}

.pd-hero-gradient {
    background: linear-gradient(to right, var(--primary), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.pd-hero p {
    color: var(--text-muted);
    font-size: 1.125rem;
    line-height: 1.65;
    margin-bottom: 2.5rem;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
}

.pd-hero-home p {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    max-width: 36rem;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 2rem;
}

/* Taxonomy Hero - image + title layout */
.pd-taxonomy-hero {
    text-align: left;
    min-height: auto;
}

.pd-taxonomy-hero-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1.75rem;
    align-items: center;
    max-width: 56rem;
    width: 100%;
}

.pd-taxonomy-hero-image {
    width: 120px;
    height: 120px;
    border-radius: 1.25rem;
    overflow: hidden;
    background: #e2e8f0;
    border: 1px solid var(--border-light);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}

.pd-taxonomy-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pd-taxonomy-hero-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pd-taxonomy-hero-kicker {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.pd-taxonomy-hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
}

.pd-taxonomy-hero-description {
    margin: 0.5rem 0 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 32rem;
}

@media (max-width: 768px) {
    .pd-taxonomy-hero-inner {
        grid-template-columns: minmax(0, 1fr);
        text-align: left;
    }

    .pd-taxonomy-hero-image {
        width: 96px;
        height: 96px;
    }

    .pd-taxonomy-hero-title {
        font-size: 1.75rem;
    }
}

.pd-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.pd-hero-home .pd-hero-buttons {
    justify-content: flex-start;
}

.pd-btn-hero {
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 1.125rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.pd-btn-hero-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(37, 106, 244, 0.2);
}

.pd-btn-hero-primary:hover {
    transform: scale(1.05);
    background: #1e5dd4;
}

.pd-btn-hero-secondary {
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-light);
}

.pd-btn-hero-secondary:hover {
    background: var(--border-light);
    border-color: var(--primary);
}

/* Header */
.pd-header {
    text-align: center;
    padding: 2rem 0;
    position: relative;
    z-index: 1;
}

.pd-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .pd-header h1 {
        font-size: 2rem;
    }
}

.pd-header p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Product Categories Section */
.pd-categories-section {
    padding: 2.5rem 0;
}

.pd-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    padding-left: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pd-section-title-bar {
    width: 0.375rem;
    height: 2rem;
    background: var(--primary);
    border-radius: 9999px;
}

.pd-section-title-bar-purple {
    background: var(--accent-purple);
}

.pd-categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 640px) {
    .pd-categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .pd-categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1280px) {
    .pd-categories-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 1536px) {
    .pd-categories-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.pd-category-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 1rem;
    background: var(--card-dark);
    border: 1px solid var(--border-color);
    transition: all 0.25s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.pd-category-card:hover {
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.pd-category-card-media {
    aspect-ratio: 1 / 1;
    position: relative;
    border-radius: 0.875rem;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem;
    box-sizing: border-box;
    line-height: 0;
    flex-shrink: 0;
}

.pd-wrapper .pd-categories-section .pd-category-card-media img,
.pd-wrapper .pd-categories-section .pd-category-card-media .pd-category-card-img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

.pd-category-card:hover .pd-category-card-media img,
.pd-category-card:hover .pd-category-card-media .pd-category-card-img {
    transform: none;
}

.pd-category-card-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.pd-category-card-placeholder .material-symbols-outlined {
    font-size: 1.75rem;
}

.pd-category-card-body h3 {
    font-weight: 600;
    font-size: 1rem;
}

/* Container */
.pd-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 1024px) {
    .pd-container {
        padding: 0 2rem;
    }
}

/* Downloads Grid Section */
.pd-section {
    margin-top: 2.5rem;
}

.pd-section-header {
    display: flex;
    align-items: center;
    justify-between;
    margin-bottom: 2rem;
    padding-left: 0.5rem;
}

.pd-section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pd-view-all {
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}

.pd-view-all:hover {
    text-decoration: underline;
}

/* Product grid: 2 columns on mobile, more on larger screens */
.pd-item-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .pd-item-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .pd-item-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 1.25rem;
    }
}

/* Product card — reference storefront layout */
.pd-card {
    --pd-card-radius: 10px;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
    border-radius: var(--pd-card-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
    transition: all 0.25s ease;
}

.pd-card:hover {
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.pd-card-thumbnail {
    aspect-ratio: 1 / 1;
    background: #e8edf2;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-shrink: 0;
    isolation: isolate;
}

.pd-card-thumbnail--has-image {
    background-color: var(--pd-thumb-bg, #fff);
}

.pd-card-thumbnail-link {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    text-decoration: none;
    z-index: 2;
    padding: 0.5rem;
    box-sizing: border-box;
}

.pd-card-thumbnail-link:not(:has(img)) {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #0f172a 0%, #1e293b 55%, #334155 100%);
}

.pd-card-thumbnail-link:not(:has(img)) .material-symbols-outlined {
    font-size: 2.75rem !important;
    color: rgba(255, 255, 255, 0.22) !important;
}

/* Audio preview overlay on thumbnail */
.pd-card-thumbnail .pd-card-audio {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 15;
    margin: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease;
    background: rgba(15, 23, 42, 0.35);
}

.pd-card:hover .pd-card-thumbnail .pd-card-audio,
.pd-card-thumbnail .pd-card-audio:has(.pd-audio-play-btn.playing) {
    opacity: 1;
}

.pd-card-thumbnail .pd-card-audio .pd-audio-player {
    pointer-events: auto;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.pd-card-thumbnail .pd-card-audio .pd-audio-player-top {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0;
}

.pd-card-thumbnail .pd-card-audio .pd-audio-play-btn {
    width: 3rem;
    height: 3rem;
    min-width: 3rem;
    min-height: 3rem;
    margin: 0;
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.pd-card-thumbnail .pd-card-audio .pd-audio-play-btn:hover {
    background: #ffffff;
    transform: scale(1.06);
}

.pd-card-thumbnail .pd-card-audio .pd-audio-play-btn .material-symbols-outlined {
    font-size: 1.75rem;
    color: var(--primary);
}

.pd-card-thumbnail .pd-card-audio .pd-audio-player .pd-audio-info,
.pd-card-thumbnail .pd-card-audio .pd-audio-player .pd-audio-progress {
    display: none;
}

.pd-wrapper .pd-card-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.pd-card:hover .pd-card-thumbnail img {
    transform: none;
}

.pd-card-badge {
    position: absolute;
    top: 0.625rem;
    left: 0.625rem;
    right: auto;
    z-index: 20;
    background: #111827;
    color: #ffffff;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.3rem 0.55rem;
    border-radius: 4px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.pd-card-badge-purple {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    box-shadow: 0 2px 10px rgba(109, 40, 217, 0.35);
}

.pd-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    padding: 1rem 1.125rem 1.125rem;
    gap: 0;
    background: #ffffff;
}

.pd-card h3 {
    font-size: 0.9375rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    letter-spacing: -0.01em;
    line-height: 1.35;
    color: #111827;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pd-card h3 a {
    color: inherit;
    text-decoration: none;
}

.pd-card p {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pd-card-price-wrapper {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    margin-top: auto;
}

.pd-card-price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.125rem;
    min-width: 0;
}

.pd-card-price-old {
    font-size: 0.75rem;
    font-weight: 500;
    color: #94a3b8;
    text-decoration: line-through;
    line-height: 1.2;
}

.pd-card-price-current {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.pd-card-price-current.pd-card-price-free {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
}

.pd-card .pd-btn {
    width: 100%;
    min-height: 2.625rem;
    padding: 0.6875rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0;
    box-shadow: none;
    border: none;
    transition: background-color 0.25s ease;
}

.pd-card .pd-btn .material-symbols-outlined {
    font-size: 1.125rem;
}

.pd-card .pd-btn-premium,
.pd-card .pd-btn-free {
    background: var(--primary);
    color: #ffffff;
}

.pd-card .pd-btn-premium:hover,
.pd-card .pd-btn-free:hover {
    background: #1e5dd4;
    color: #ffffff;
}

.pd-card .pd-btn:disabled,
.pd-card .pd-btn[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.pd-card-price-wrapper > div:empty {
    display: none;
}

.pd-card-audio {
    margin: 1rem 0;
    width: 100%;
}

.pd-card-audio audio {
    display: none;
}

/* Custom Audio Player - Light theme */
.pd-audio-player {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    padding: 0.75rem 0.875rem;
    background: rgba(241, 245, 249, 0.9);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.pd-audio-player:hover {
    border-color: rgba(37, 106, 244, 0.35);
    box-shadow: 0 2px 8px rgba(37, 106, 244, 0.08);
}

.pd-audio-player-top {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    width: 100%;
}

.pd-audio-play-btn {
    width: 3rem;
    height: 3rem;
    min-width: 3rem;
    min-height: 3rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, var(--primary) 35%, #1d4ed8 100%);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 4px 16px rgba(37, 106, 244, 0.5),
                0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.pd-audio-play-btn::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #1d4ed8);
    opacity: 0.4;
    z-index: -1;
    filter: blur(8px);
    transition: opacity 0.25s ease;
}

.pd-audio-play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(37, 106, 244, 0.55),
                0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.pd-audio-play-btn:hover::before {
    opacity: 0.6;
}

.pd-audio-play-btn:active {
    transform: scale(1.02);
    box-shadow: 0 2px 12px rgba(37, 106, 244, 0.45),
                0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.pd-audio-play-btn.playing {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 40%, #b91c1c 100%);
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.5),
                0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.pd-audio-play-btn.playing::before {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    opacity: 0.4;
}

.pd-audio-play-btn.playing:hover {
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.55),
                0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.pd-audio-play-btn.playing:hover::before {
    opacity: 0.6;
}

.pd-audio-play-btn .material-symbols-outlined {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 2px; /* optical centering for play triangle */
}

.pd-audio-play-btn.playing .pd-play-icon {
    display: none;
}

.pd-audio-play-btn.playing .pd-pause-icon {
    display: inline-block !important;
}

.pd-audio-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.pd-audio-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pd-audio-time {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.6875rem;
    font-variant-numeric: tabular-nums;
    color: var(--text-muted);
}

.pd-audio-separator {
    color: var(--text-muted);
    opacity: 0.7;
}

.pd-audio-progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: visible;
    margin-top: 0.25rem;
    cursor: pointer;
    position: relative;
}

.pd-audio-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), rgba(139, 92, 246, 0.9));
    border-radius: 4px;
    transition: width 0.1s linear;
    position: relative;
    will-change: width;
}

.pd-audio-progress-bar::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s ease;
    box-shadow: 0 0 0 2px var(--primary);
}

.pd-audio-player:hover .pd-audio-progress-bar::after {
    opacity: 1;
}

/* Buttons */
.pd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--primary);
    color: white;
}

.pd-btn:hover {
    background: #1e5dd4;
}

.pd-btn:disabled,
.pd-btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

.pd-btn-premium {
    background: var(--primary);
}

.pd-btn-free {
    background: var(--primary);
}

.pd-btn .material-symbols-outlined {
    font-size: 1rem;
}

/* Search Bar */
.pd-search-bar {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
}

#pd-search-input {
    width: 100%;
    padding: 0.875rem 1.25rem 0.875rem 3rem;
    border-radius: 9999px;
    border: 1px solid var(--border-color);
    background: #ffffff;
    color: var(--text-light);
    font-size: 0.95rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    box-sizing: border-box;
}

#pd-search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow:
        0 0 0 1px rgba(37, 106, 244, 0.15),
        0 0 0 6px rgba(37, 106, 244, 0.16);
    background: #ffffff;
}

.pd-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 480px;
}

.pd-search-wrapper .material-symbols-outlined {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    font-size: 1.25rem;
    line-height: 1;
    z-index: 1;
}

.pd-search-wrapper #pd-search-input {
    padding-left: 3rem;
}

/* Empty State */
.pd-empty-state {
    text-align: center;
    color: var(--text-muted);
    padding: 3rem 1rem;
}

/* Popup Modal - Free Download */
#pd-email-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overflow-y: auto;
    padding: 1.25rem;
    box-sizing: border-box;
}

.pd-popup-inner {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 0;
    width: min(420px, 92%);
    max-width: 100%;
    text-align: center;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

#pd-close-popup {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    font-weight: 300;
    line-height: 1;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

#pd-close-popup:hover {
    color: var(--text-light);
    transform: rotate(90deg);
}

/* Modal top: thumbnail + title + subtitle */
.pd-popup-top {
    padding: 2rem 2rem 0;
}

.pd-popup-thumbnail {
    margin: 0 auto 1.25rem;
    width: 80px;
    height: 80px;
    border-radius: 0.75rem;
    overflow: hidden;
    background: var(--border-light);
}

.pd-popup-thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.pd-popup-product-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-light);
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.pd-popup-subtitle {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

/* Modal body: email + button */
.pd-popup-body {
    padding: 1.5rem 2rem;
}

.pd-popup-inner input[type="email"] {
    width: 100%;
    padding: 0.875rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1rem;
    box-sizing: border-box;
}

.pd-popup-inner input[type="email"]::placeholder {
    color: var(--text-muted);
}

.pd-popup-inner input[type="email"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 106, 244, 0.2);
}

.pd-popup-submit,
#pd-email-popup .pd-popup-submit,
#pd-email-popup #pd-send-email {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 0.5rem;
    background: #256af4;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.02s;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    opacity: 1 !important;
    visibility: visible !important;
}

.pd-popup-submit:hover:not(:disabled),
#pd-email-popup .pd-popup-submit:hover:not(:disabled),
#pd-email-popup #pd-send-email:hover:not(:disabled) {
    background: #1e5dd4;
}

.pd-popup-submit:active:not(:disabled) {
    transform: scale(0.99);
}

.pd-popup-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.pd-popup-submit .material-symbols-outlined {
    font-size: 1.25rem;
}

#pd-spinner {
    display: none;
    margin: 1.125rem auto 0;
}

.pd-loader {
    width: 2.625rem;
    height: 2.625rem;
    border-radius: 50%;
    border: 4px solid rgba(37, 106, 244, 0.2);
    border-top-color: var(--primary);
    animation: pd-spin 0.8s linear infinite;
    margin: 0 auto;
}

#pd-feedback {
    margin-top: 0.75rem;
    min-height: 1.25rem;
    font-size: 0.875rem;
    color: #475569;
}

#pd-email-popup #pd-feedback {
    color: #475569;
}

/* Modal footer: privacy */
.pd-popup-footer {
    padding: 1rem 2rem 1.5rem;
    border-top: 1px solid var(--border-light);
}

.pd-popup-privacy {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

@keyframes pd-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Video Popup (Watch Demo) */
.pd-video-popup {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.pd-video-popup.pd-video-popup-visible {
    opacity: 1;
    visibility: visible;
}

body.pd-video-popup-open {
    overflow: hidden;
}

.pd-video-popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.pd-video-popup-container {
    position: relative;
    width: 100%;
    max-width: 960px;
    max-height: calc(100vh - 3rem);
    animation: pd-video-popup-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes pd-video-popup-in {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(12px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.pd-video-popup-inner {
    background: linear-gradient(145deg, rgba(22, 27, 36, 0.98) 0%, rgba(16, 22, 34, 0.99) 100%);
    border: 1px solid rgba(59, 67, 84, 0.6);
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.6),
                0 0 0 1px rgba(255, 255, 255, 0.04) inset,
                0 0 80px rgba(37, 106, 244, 0.12);
}

.pd-video-popup-ratio {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
}

.pd-video-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.pd-video-popup-close {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    z-index: 10;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.pd-video-popup-close:hover {
    background: rgba(220, 38, 38, 0.9);
    transform: scale(1.08);
}

.pd-video-popup-close .material-symbols-outlined {
    font-size: 1.5rem;
}

@media (max-width: 640px) {
    .pd-video-popup {
        padding: 1rem;
    }
    .pd-video-popup-close {
        top: 0.5rem;
        right: 0.5rem;
        width: 2.5rem;
        height: 2.5rem;
    }
}

/* Compatibility Section */
.pd-compatibility-section {
    padding: 3rem 0;
    border-top: 1px solid var(--border-light);
}

.pd-compatibility-title {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: rgb(100, 116, 139);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2.5rem;
}

.pd-compatibility-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    opacity: 0.4;
    filter: grayscale(100%);
    transition: all 0.5s;
}

.pd-compatibility-grid:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.pd-compatibility-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pd-compatibility-item .material-symbols-outlined {
    font-size: 1.5rem;
}

.pd-compatibility-item span:last-child {
    font-weight: 700;
    font-size: 1.125rem;
}

/* Material Symbols font fallback */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

/* Ensure proper text rendering */
.pd-wrapper * {
    box-sizing: border-box;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Responsive */
@media (max-width: 1024px) {
    .pd-container {
        padding: 0 1.5rem;
    }
    
    .pd-hero:not(.pd-hero-home) h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .pd-hero:not(.pd-hero-home) {
        min-height: 400px;
        padding: 1.5rem;
    }

    .pd-hero-home .pd-hero-inner {
        padding-top: 2.25rem;
        padding-bottom: 3.25rem;
    }

    .pd-hero-home .pd-hero-buttons {
        padding-bottom: 1.25rem;
    }

    .pd-hero-visual-accent--one {
        left: 0;
        width: 30%;
    }

    .pd-hero-visual-accent--two {
        right: 0;
        width: 28%;
    }
    
    .pd-hero:not(.pd-hero-home) h1 {
        font-size: 2rem;
    }
    
    .pd-item-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .pd-card {
        padding: 0;
    }
    
    .pd-hero-home .pd-hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .pd-hero:not(.pd-hero-home) .pd-hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .pd-btn-hero {
        width: 100%;
    }
    
    .pd-compatibility-grid {
        gap: 1.5rem;
    }
    
    .pd-audio-title {
        font-size: 0.8125rem;
    }
    
    .pd-audio-time {
        font-size: 0.6875rem;
    }
    
    .pd-audio-play-btn {
        width: 2.75rem;
        height: 2.75rem;
        min-width: 2.75rem;
        min-height: 2.75rem;
    }
    
    .pd-audio-play-btn .material-symbols-outlined {
        font-size: 1.25rem;
    }
}

/* Phone / small screen responsive (without breaking functionality) */
@media (max-width: 480px) {
    .pd-wrapper:not(.pd-single-wrapper) {
        overflow-x: hidden;
    }
    
    .pd-container {
        padding: 0 1rem;
    }
    
    .pd-hero:not(.pd-hero-home) {
        min-height: 360px;
        padding: 1.25rem;
        margin-bottom: 2rem;
    }

    .pd-hero-home .pd-hero-inner {
        padding-top: 1.75rem;
        padding-bottom: 2.75rem;
    }

    .pd-hero-home .pd-hero-buttons {
        padding-bottom: 1rem;
    }
    
    .pd-hero:not(.pd-hero-home) h1 {
        font-size: 1.625rem;
        line-height: 1.25;
    }
    
    .pd-hero:not(.pd-hero-home) p {
        font-size: 0.9375rem;
        margin-bottom: 1.5rem;
    }
    
    .pd-header {
        padding: 1.5rem 0;
    }
    
    .pd-header h1 {
        font-size: 1.375rem;
    }
    
    .pd-categories-section,
    .pd-section {
        padding: 1.5rem 0;
        margin-top: 1.5rem;
    }
    
    .pd-section-title {
        font-size: 1.25rem;
        margin-bottom: 1.25rem;
    }
    
    .pd-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        margin-bottom: 1.25rem;
    }
    
    .pd-section-header h2 {
        font-size: 1.25rem;
    }
    
    .pd-item-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    .pd-card-content {
        padding: 0.875rem 0.875rem 1rem;
    }
    
    .pd-card h3 {
        font-size: 0.875rem;
        margin-bottom: 0.625rem;
    }
    
    .pd-card p {
        font-size: 0.8125rem;
    }

    .pd-card .pd-btn {
        min-height: 44px;
        font-size: 0.8125rem;
    }
    
    /* Touch-friendly buttons (min 44px tap target) */
    .pd-btn {
        min-height: 44px;
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }
    
    .pd-btn-hero {
        min-height: 48px;
    }
    
    .pd-audio-play-btn {
        width: 3rem;
        height: 3rem;
        min-width: 44px;
        min-height: 44px;
    }
    
    .pd-audio-play-btn .material-symbols-outlined {
        font-size: 1.375rem;
    }
    
    .pd-search-bar {
        margin-top: 1.5rem;
    }

    .pd-search-wrapper {
        max-width: none;
    }
    
    #pd-search-input {
        width: 100%;
        padding: 0.75rem 1rem 0.75rem 2.5rem;
        font-size: 1rem; /* prevents zoom on focus in iOS */
    }

    .pd-search-wrapper .material-symbols-outlined {
        left: 0.875rem;
    }

    .pd-search-wrapper #pd-search-input {
        padding-left: 2.5rem;
    }
    
    /* Popup modal - mobile */
    #pd-email-popup {
        padding: 0.75rem;
        align-items: flex-start;
        padding-top: 1.5rem;
    }

    .pd-popup-inner {
        width: 100%;
        max-width: none;
        border-radius: 0.875rem;
    }

    .pd-popup-top {
        padding: 1.75rem 1.25rem 0;
    }

    .pd-popup-thumbnail {
        width: 64px;
        height: 64px;
        margin-bottom: 1rem;
    }

    .pd-popup-product-title {
        font-size: 1.125rem;
    }

    .pd-popup-body {
        padding: 1.25rem 1.25rem;
    }

    .pd-popup-inner input[type="email"] {
        font-size: 1rem; /* prevents zoom on focus in iOS */
        padding: 0.875rem 1rem;
    }

    .pd-popup-submit {
        width: 100%;
        padding: 0.875rem 1.25rem;
        font-size: 1rem;
    }

    .pd-popup-footer {
        padding: 0.875rem 1.25rem 1.25rem;
    }

    #pd-close-popup {
        top: 0.5rem;
        right: 0.5rem;
        min-width: 44px;
        min-height: 44px;
    }
    
    .pd-compatibility-grid {
        gap: 1rem;
    }
    
    .pd-compatibility-item span:last-child {
        font-size: 0.875rem;
    }
}
