/* Free HTML5 player generator — dark theme matching site hero */

/* Compact hero + continuous dark section (no white gap) */
/* Slate background — not the site plum/purple hero */
:root:not(#hx) main > header.header.ys-gen-hero,
:root:not(#ys) .page-free-html5-audio-player header.header.ys-gen-hero {
    padding: 140px 0 36px !important;
    background:
        radial-gradient(ellipse 70% 80% at 50% 0%, #05070c 0%, #0f141d 42%, transparent 72%),
        radial-gradient(ellipse 40% 30% at 92% 70%, rgba(237, 80, 0, 0.2), transparent 70%),
        linear-gradient(180deg, #0f141d 0%, #151a24 50%, #1a2030 100%) !important;
}

:root:not(#ys) .page-free-html5-audio-player .ys-gen-hero-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px !important;
}

:root:not(#ys) .page-free-html5-audio-player .ys-gen-hero-nav .btn {
    margin: 0 !important;
    min-height: 46px;
    padding: 12px 22px !important;
    border-radius: 999px !important;
    font-weight: 700 !important;
}

:root:not(#ys) .page-free-html5-audio-player .ys-gen-section {
    position: relative;
    overflow: hidden;
    padding: 28px 0 80px !important;
    color: #c3c5e0 !important;
    background:
        radial-gradient(ellipse 60% 70% at 50% 0%, #151a24, transparent 75%),
        linear-gradient(160deg, #0f141d 0%, #1a2030 100%) !important;
}

:root:not(#ys) .page-free-html5-audio-player .ys-gen-section::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1.4px),
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 22px 22px, 88px 88px, 88px 88px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 25%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 25%, transparent 80%);
}

:root:not(#ys) .page-free-html5-audio-player .ys-gen-section > .container {
    position: relative;
    z-index: 1;
}

:root:not(#ys) .page-free-html5-audio-player .ys-gen-heading {
    margin-bottom: 22px !important;
}

:root:not(#ys) .page-free-html5-audio-player .ys-gen-heading .heading-line {
    color: #fff !important;
}

:root:not(#ys) .page-free-html5-audio-player .ys-gen-heading .lead {
    color: #c3c5e0 !important;
}

/* Step chips */
:root:not(#ys) .page-free-html5-audio-player .ys-gen-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0 0 28px;
}

:root:not(#ys) .page-free-html5-audio-player .ys-gen-chip {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 13px !important;
    font-weight: 650;
    color: #e5e7f5 !important;
    background: rgba(255, 255, 255, 0.05);
    text-decoration: none !important;
    transition: background 0.15s ease, border-color 0.15s ease;
}

:root:not(#ys) .page-free-html5-audio-player .ys-gen-chip:hover,
:root:not(#ys) .page-free-html5-audio-player .ys-gen-chip.is-active {
    color: #fff !important;
    border-color: transparent;
    background: linear-gradient(135deg, #ff7a2e, #ed5000);
}

:root:not(#ys) .ys-gen {
    --gen-ink: #f4f5f7;
    --gen-muted: #a7adc2;
    --gen-line: rgba(255, 255, 255, 0.1);
    --gen-field: rgba(255, 255, 255, 0.06);
    --gen-pink: #ff7a2e;
    --gen-accent: #ed5000;
    max-width: 1120px;
    margin: 0 auto;
    color: var(--gen-ink);
}

:root:not(#ys) .ys-gen p {
    margin: 0;
}

:root:not(#ys) .ys-gen-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
    gap: 22px;
    align-items: start;
}

/* Form panel */
:root:not(#ys) .ys-gen-form {
    padding: 6px 24px;
    border-radius: 24px;
    background: rgba(15, 20, 29, 0.72) !important;
    border: 1px solid var(--gen-line);
    backdrop-filter: blur(10px);
}

:root:not(#ys) .ys-gen-group {
    padding: 22px 0;
    scroll-margin-top: 100px;
}

:root:not(#ys) .ys-gen-group + .ys-gen-group {
    border-top: 1px dashed var(--gen-line);
}

:root:not(#ys) .ys-gen-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #fff !important;
}

:root:not(#ys) .ys-gen-label span {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    color: #fff !important;
    background: linear-gradient(135deg, var(--gen-pink), var(--gen-accent)) !important;
}

:root:not(#ys) .ys-gen-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

:root:not(#ys) .ys-pb-field {
    margin-bottom: 14px;
}

:root:not(#ys) .ys-gen-row .ys-pb-field,
:root:not(#ys) .ys-gen-group > .ys-pb-field:last-child {
    margin-bottom: 0;
}

:root:not(#ys) .ys-pb-field > label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: var(--gen-muted) !important;
}

:root:not(#ys) .ys-pb-field input[type="text"],
:root:not(#ys) .ys-pb-field input[type="url"] {
    display: block;
    width: 100%;
    height: 46px;
    padding: 0 14px !important;
    border: 1px solid var(--gen-line) !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff;
    background: var(--gen-field) !important;
    box-shadow: none !important;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

:root:not(#ys) .ys-pb-field input::placeholder {
    color: #7d849c !important;
    -webkit-text-fill-color: #7d849c;
}

:root:not(#ys) .ys-pb-field input[type="text"]:focus,
:root:not(#ys) .ys-pb-field input[type="url"]:focus {
    border-color: var(--gen-pink) !important;
    box-shadow: 0 0 0 4px rgba(237, 80, 0, 0.18) !important;
}

/* Detect pill */
:root:not(#ys) .ys-pb-detect {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: -4px 0 16px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #fbbf24 !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

:root:not(#ys) .ys-pb-detect::before {
    content: '';
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #eab308;
}

:root:not(#ys) .ys-pb-detect[data-state="ok"] {
    color: #6ee7b7 !important;
}

:root:not(#ys) .ys-pb-detect[data-state="ok"]::before {
    background: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18);
}

/* Layout picker */
:root:not(#ys) .ys-pb-styles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

:root:not(#ys) .ys-pb-styles button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 12px 6px 10px;
    border: 1px solid var(--gen-line) !important;
    border-radius: 12px;
    font-size: 13px !important;
    font-weight: 600;
    color: #fff !important;
    background: rgba(255, 255, 255, 0.04) !important;
    cursor: pointer;
}

:root:not(#ys) .ys-pb-styles button.is-active {
    border-color: rgba(237, 80, 0, 0.7) !important;
    box-shadow: 0 0 0 3px rgba(237, 80, 0, 0.18);
    background: rgba(237, 80, 0, 0.12) !important;
}

:root:not(#ys) .ys-pb-styles i {
    display: block;
    background: rgba(255, 255, 255, 0.9);
    position: relative;
}

:root:not(#ys) .ys-pb-styles i::before {
    content: '';
    position: absolute;
    background: linear-gradient(135deg, var(--gen-pink), var(--gen-accent));
}

:root:not(#ys) .ys-pb-style-bar {
    width: 56px;
    height: 26px;
    border-radius: 6px;
}

:root:not(#ys) .ys-pb-style-bar::before {
    left: 4px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

:root:not(#ys) .ys-pb-style-card {
    width: 26px;
    height: 34px;
    border-radius: 6px;
}

:root:not(#ys) .ys-pb-style-card::before {
    left: 7px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

:root:not(#ys) .ys-pb-style-pill {
    width: 56px;
    height: 18px;
    border-radius: 999px;
}

:root:not(#ys) .ys-pb-style-pill::before {
    left: 3px;
    top: 3px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

/* Size buttons */
:root:not(#ys) .ys-pb-sizes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

:root:not(#ys) .ys-pb-sizes button {
    height: 40px;
    margin: 0;
    padding: 0 6px;
    border: 1px solid var(--gen-line) !important;
    border-radius: 10px;
    font-size: 13px !important;
    font-weight: 600;
    color: #e5e7f5 !important;
    background: rgba(255, 255, 255, 0.04) !important;
    cursor: pointer;
}

:root:not(#ys) .ys-pb-sizes button:hover {
    border-color: rgba(237, 80, 0, 0.55) !important;
}

:root:not(#ys) .ys-pb-sizes button.is-active {
    color: #fff !important;
    border-color: transparent !important;
    background: linear-gradient(135deg, var(--gen-pink), var(--gen-accent)) !important;
}

/* Colors */
:root:not(#ys) .ys-pb-colors {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

:root:not(#ys) .ys-pb-color {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 6px 8px;
    border: 1px solid var(--gen-line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04) !important;
    cursor: pointer;
}

:root:not(#ys) .ys-pb-color input[type="color"] {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: transparent !important;
    cursor: pointer;
}

:root:not(#ys) .ys-pb-color input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

:root:not(#ys) .ys-pb-color input[type="color"]::-webkit-color-swatch {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
}

:root:not(#ys) .ys-pb-color input[type="color"]::-moz-color-swatch {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
}

:root:not(#ys) .ys-pb-color span {
    min-width: 0;
    font-size: 12px !important;
    font-weight: 600;
    color: #e5e7f5 !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Toggles */
:root:not(#ys) .ys-pb-toggle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0;
    padding: 12px 0;
    cursor: pointer;
}

:root:not(#ys) .ys-pb-toggle-text b {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #fff !important;
}

:root:not(#ys) .ys-pb-toggle-text small {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: var(--gen-muted) !important;
}

:root:not(#ys) .ys-pb-toggle input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

:root:not(#ys) .ys-pb-switch {
    position: relative;
    flex: 0 0 auto;
    width: 46px;
    height: 26px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18) !important;
    transition: background 0.2s ease;
}

:root:not(#ys) .ys-pb-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease;
}

:root:not(#ys) .ys-pb-toggle input:checked + .ys-pb-switch {
    background: linear-gradient(135deg, var(--gen-pink), var(--gen-accent)) !important;
}

:root:not(#ys) .ys-pb-toggle input:checked + .ys-pb-switch::after {
    transform: translateX(20px);
}

:root:not(#ys) .ys-pb-toggle input:focus-visible + .ys-pb-switch {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Preview */
:root:not(#ys) .ys-gen-side {
    position: sticky;
    top: 100px;
}

:root:not(#ys) .ys-gen-preview {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 320px;
    padding: 52px 22px 20px;
    border-radius: 24px;
    position: relative;
    background:
        radial-gradient(circle at 18% 12%, rgba(237, 80, 0, 0.28), transparent 55%),
        radial-gradient(circle at 88% 88%, rgba(237, 80, 0, 0.28), transparent 55%),
        rgba(15, 20, 29, 0.72) !important;
    border: 1px solid var(--gen-line);
    backdrop-filter: blur(10px);
}

:root:not(#ys) .ys-gen-preview-tag {
    position: absolute;
    top: 16px;
    left: 18px;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gen-muted) !important;
}

:root:not(#ys) .ys-gen-preview-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 18px;
}

:root:not(#ys) .ys-gen-preview-link {
    font-size: 13px;
    font-weight: 600;
    color: #ffc29e !important;
    text-decoration: none !important;
}

:root:not(#ys) .ys-gen-preview-link:hover {
    color: #fff !important;
}

/* Code */
:root:not(#ys) .ys-gen-code {
    margin-top: 22px;
    border-radius: 24px;
    overflow: hidden;
    background: rgba(8, 12, 18, 0.82) !important;
    border: 1px solid var(--gen-line);
    scroll-margin-top: 100px;
}

:root:not(#ys) .ys-gen-code-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--gen-line);
}

:root:not(#ys) .ys-gen-code-title {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #fff !important;
}

:root:not(#ys) .ys-gen-code-title small {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    font-weight: 400;
    color: var(--gen-muted) !important;
}

:root:not(#ys) .ys-pb-copy {
    flex: 0 0 auto;
    height: 40px;
    margin: 0;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    font-size: 13px !important;
    font-weight: 700;
    color: #fff !important;
    background: linear-gradient(135deg, var(--gen-pink), var(--gen-accent)) !important;
    cursor: pointer;
}

:root:not(#ys) .ys-pb-copy.is-done {
    background: #059669 !important;
}

:root:not(#ys) .ys-pb-code {
    display: block;
    width: 100%;
    min-height: 180px;
    margin: 0;
    padding: 18px 20px !important;
    resize: vertical;
    border: 0 !important;
    border-radius: 0 !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
    font-size: 12.5px !important;
    line-height: 1.6;
    color: #e5e7f5 !important;
    -webkit-text-fill-color: #e5e7f5;
    background: transparent !important;
    box-shadow: none !important;
    outline: none;
}

/* Bottom CTA */
:root:not(#ys) .page-free-html5-audio-player .ys-gen-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 28px;
    padding: 24px 26px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 20, 29, 0.65);
}

:root:not(#ys) .page-free-html5-audio-player .ys-gen-cta h3 {
    margin: 0 0 6px !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #fff !important;
}

:root:not(#ys) .page-free-html5-audio-player .ys-gen-cta p {
    margin: 0 !important;
    color: #c3c5e0 !important;
}

:root:not(#ys) .page-free-html5-audio-player .ys-gen-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

:root:not(#ys) .page-free-html5-audio-player .ys-gen-cta .btn {
    min-height: 44px;
    padding: 11px 20px !important;
    border-radius: 999px !important;
    font-weight: 700 !important;
}

:root:not(#ys) .page-free-html5-audio-player .ys-gen-cta .btn:not(.btn-trial-hero) {
    color: #fff !important;
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
}

:root:not(#ys) .page-free-html5-audio-player .ys-gen-cta .btn:not(.btn-trial-hero):hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: #fff !important;
}

@media (max-width: 960px) {
    :root:not(#ys) .ys-gen-grid {
        grid-template-columns: 1fr;
    }

    :root:not(#ys) .ys-gen-side {
        position: static;
        order: -1;
    }

    :root:not(#ys) .ys-gen-preview {
        min-height: 0;
    }

    :root:not(#ys) .page-free-html5-audio-player .ys-gen-cta {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    :root:not(#ys) .page-free-html5-audio-player .ys-gen-cta-actions {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    :root:not(#hx) main > header.header.ys-gen-hero,
    :root:not(#ys) .page-free-html5-audio-player header.header.ys-gen-hero {
        padding: 120px 0 24px !important;
    }

    :root:not(#ys) .page-free-html5-audio-player .ys-gen-section {
        padding: 18px 0 56px !important;
    }

    :root:not(#ys) .ys-gen-form {
        padding: 2px 16px;
        border-radius: 20px;
    }

    :root:not(#ys) .ys-gen-row {
        grid-template-columns: 1fr;
    }

    :root:not(#ys) .ys-pb-sizes,
    :root:not(#ys) .ys-pb-colors {
        grid-template-columns: 1fr 1fr;
    }

    :root:not(#ys) .ys-gen-preview {
        padding: 46px 14px 16px;
        border-radius: 20px;
    }

    :root:not(#ys) .ys-gen-code-head,
    :root:not(#ys) .ys-gen-preview-actions {
        flex-direction: column;
        align-items: stretch;
    }

    :root:not(#ys) .ys-pb-copy {
        width: 100%;
    }
}


/* Brand buttons on this page: pink, white label always */
:root:not(#ys) .page-free-html5-audio-player .btn-trial-hero,
:root:not(#hx) .page-free-html5-audio-player .btn-trial-hero,
:root:not(#ys) .page-free-html5-audio-player .btn-trial-hero:hover,
:root:not(#hx) .page-free-html5-audio-player .btn-trial-hero:hover,
:root:not(#ys) .page-free-html5-audio-player .btn-trial-hero:focus,
:root:not(#hx) .page-free-html5-audio-player .btn-trial-hero:focus,
:root:not(#ys) .page-free-html5-audio-player .btn-trial-hero:active,
:root:not(#hx) .page-free-html5-audio-player .btn-trial-hero:active {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    background: linear-gradient(135deg, #ff7a2e, #ed5000) !important;
    box-shadow: 0 12px 28px -12px rgba(15, 23, 42, 0.22) !important;
    filter: none !important;
}
