:root {
    --color-primary: #2563eb;
    --color-primary-dark: #1d4ed8;
    --color-primary-light: #3b82f6;
    --color-secondary: #2563eb;
    --color-secondary-dark: #1d4ed8;
    --color-accent: #2563eb;
    --color-bg: #f4f4f5;
    --color-surface: #ffffff;
    --color-text: #18181b;
    --color-text-muted: #71717a;
    --color-border: #e4e4e7;
    --color-success: #16a34a;
    --color-warning: #d97706;
    --color-error: #dc2626;
    --hero-bg: #ffffff;
    --hero-text: #18181b;
    --footer-bg: #18181b;
    --radius: 10px;
    --radius-sm: 6px;
    --shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 2px 8px rgba(0, 0, 0, .04);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, .1);
    --font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --max-width: 1200px;
    --header-primary-height: 64px;
    --header-nav-height: 48px;
    --header-height: calc(var(--header-primary-height) + var(--header-nav-height));
    --header-bg: #000000;
    --header-text: #ffffff;
    --header-text-muted: rgba(255, 255, 255, .82);
    --bh-red: #e50914;
    --bh-red-dark: #b8070f;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header – Bollywood Hungama layout */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 1000;
    padding: .75rem 1rem;
    background: var(--bh-red);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.skip-link:focus {
    left: 0;
}

.bh-header,
.site-header.bh-header {
    background: var(--header-bg);
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .45);
}

.bh-header-utility {
    background: #000;
    border-bottom: 1px solid #1f1f1f;
}

.bh-header-utility-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: var(--header-primary-height);
}

.bh-header-left {
    display: flex;
    align-items: stretch;
    gap: 0;
    min-width: 0;
}

.bh-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: .5rem;
    align-self: center;
    margin-right: .25rem;
}

.bh-nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    transition: transform .2s, opacity .2s;
}

.bh-nav-toggle[aria-expanded="true"] .bh-nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.bh-nav-toggle[aria-expanded="true"] .bh-nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.bh-nav-toggle[aria-expanded="true"] .bh-nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.bh-logo {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    text-decoration: none;
    color: #fff;
    padding: .5rem .75rem .5rem 0;
    min-width: 0;
}

.bh-logo-mark {
    width: 28px;
    height: 28px;
    background: conic-gradient(from 135deg, #e53935, #ff9800, #ffc107, #4caf50, #2196f3, #9c27b0, #e53935);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    flex-shrink: 0;
}

.bh-logo-text {
    font-size: 1.125rem;
    font-weight: 800;
    letter-spacing: -.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: min(42vw, 220px);
}

.bh-logo-img {
    height: 34px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.bh-search-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .15rem;
    min-width: 58px;
    padding: .35rem .5rem;
    background: var(--bh-red);
    color: #fff;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: .625rem;
    font-weight: 800;
    letter-spacing: .06em;
    line-height: 1;
    transition: background .15s;
    align-self: stretch;
}

.bh-search-btn:hover,
.bh-search-btn[aria-expanded="true"] {
    background: var(--bh-red-dark);
}

.bh-search-icon {
    display: block;
}

.bh-header-utils {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-shrink: 0;
}

.bh-util-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .2rem;
}

.bh-util-label {
    font-size: .5625rem;
    font-weight: 700;
    letter-spacing: .08em;
    color: rgba(255, 255, 255, .55);
    text-transform: uppercase;
    line-height: 1;
}

.bh-social-icons {
    display: flex;
    align-items: center;
    gap: .35rem;
}

.bh-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 3px;
    color: #fff;
    text-decoration: none;
    font-size: .75rem;
    font-weight: 800;
    line-height: 1;
}

.bh-social-fb { background: #1877f2; }
.bh-social-tw { background: #000; border: 1px solid #444; }
.bh-social-wa { background: #25d366; }
.bh-social-yt { background: #ff0000; font-size: .625rem; }

.bh-util-feedback {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .2rem;
    text-decoration: none;
    color: #fff;
}

.bh-feedback-icon {
    font-size: 1.125rem;
    line-height: 1;
}

.bh-search-panel {
    background: #111;
    border-bottom: 1px solid #222;
    padding: .75rem 0;
}

.bh-search-panel:not([hidden]) {
    display: block;
}

.bh-search-form {
    display: flex;
    gap: .5rem;
    align-items: stretch;
}

.bh-search-input {
    flex: 1;
    min-width: 0;
    padding: .75rem 1rem;
    border: 1px solid #333;
    border-radius: 4px;
    background: #111;
    color: #fff;
    font-family: inherit;
    font-size: .9375rem;
}

.bh-search-input::placeholder {
    color: rgba(255, 255, 255, .45);
}

.bh-search-input:-webkit-autofill,
.bh-search-input:-webkit-autofill:hover,
.bh-search-input:-webkit-autofill:focus {
    -webkit-text-fill-color: #fff;
    box-shadow: 0 0 0 1000px #111 inset;
    caret-color: #fff;
}

.url-form-bar .url-input::placeholder {
    color: var(--color-text-muted);
}

.url-form-bar .url-input:-webkit-autofill,
.url-form-bar .url-input:-webkit-autofill:hover,
.url-form-bar .url-input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--color-text);
    box-shadow: 0 0 0 1000px var(--color-surface) inset;
    caret-color: var(--color-text);
}

.bh-search-input:focus {
    outline: none;
    border-color: var(--bh-red);
}

.bh-search-submit {
    padding: .75rem 1.25rem;
    background: var(--bh-red);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-family: inherit;
    font-size: .875rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.bh-search-submit:hover {
    background: var(--bh-red-dark);
}

.bh-header-nav {
    background: #000;
    position: relative;
}

.bh-header-nav-inner {
    padding-left: 0;
    padding-right: 0;
    overflow: visible;
}

.bh-nav-list {
    display: flex;
    align-items: stretch;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow: visible;
    scrollbar-width: none;
}

.bh-nav-list::-webkit-scrollbar {
    display: none;
}

.bh-nav-item {
    position: relative;
    flex-shrink: 0;
}

.bh-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--header-nav-height);
    padding: 0 1.125rem;
    color: #fff;
    text-decoration: none;
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: background .15s;
}

.bh-nav-link:hover,
.bh-nav-item.open .bh-nav-link,
.bh-nav-item:focus-within > .bh-nav-link {
    background: rgba(255, 255, 255, .08);
}

.bh-nav-rainbow {
    display: none;
}

.bh-mega-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;
    background: #fff;
    border-top: 3px solid var(--nav-accent, var(--bh-red));
    box-shadow: 0 12px 32px rgba(0, 0, 0, .25);
    z-index: 300;
    padding-top: 4px;
}

.bh-mega-menu::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -6px;
    height: 6px;
}

.bh-nav-item.open .bh-mega-menu {
    display: block;
}

.bh-mega-inner {
    padding: 1rem 0 1.25rem;
}

.bh-mega-title {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #888;
    margin-bottom: .75rem;
    padding: 0 1rem;
}

.bh-mega-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0;
    max-height: 320px;
    overflow-y: auto;
}

.bh-mega-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: .625rem 1rem;
    color: #222;
    text-decoration: none;
    font-size: .875rem;
    font-weight: 500;
    border-bottom: 1px solid #f0f0f0;
}

.bh-mega-link-main {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-width: 0;
}

.bh-mega-link:hover {
    background: #fff5f5;
    color: var(--bh-red);
}

@media (min-width: 901px) {
    .bh-has-mega:hover .bh-mega-menu,
    .bh-has-mega:focus-within .bh-mega-menu {
        display: block;
    }

    .bh-header-nav {
        overflow: visible;
    }
}

@media (max-width: 900px) {
    .bh-nav-toggle {
        display: flex;
    }

    .bh-header-utils {
        display: none;
    }

    .bh-header-nav {
        position: absolute;
        top: var(--header-primary-height);
        left: 0;
        right: 0;
        display: none;
        max-height: calc(100vh - var(--header-primary-height));
        overflow-y: auto;
        border-top: 1px solid #222;
        box-shadow: 0 12px 32px rgba(0, 0, 0, .5);
    }

    .bh-header-nav.open {
        display: block;
    }

    .bh-nav-list {
        flex-direction: column;
        overflow: visible;
    }

    .bh-nav-link {
        width: 100%;
        justify-content: space-between;
        min-height: auto;
        padding: .875rem 1.25rem;
        border-bottom: 1px solid #1a1a1a;
    }

    .bh-nav-rainbow {
        display: none;
    }

    .bh-mega-menu {
        position: static;
        display: none;
        box-shadow: none;
        border-top: none;
        background: #111;
        min-width: 0;
    }

    .bh-nav-item.open .bh-mega-menu {
        display: block;
    }

    .bh-mega-title {
        color: rgba(255, 255, 255, .5);
    }

    .bh-mega-link {
        color: #eee;
        border-bottom-color: #222;
        padding-left: 2rem;
    }

    .bh-mega-link:hover {
        background: #1a1a1a;
        color: #fff;
    }

    .bh-has-mega .bh-nav-trigger::after {
        content: none;
    }

    .bh-nav-item-head {
        width: 100%;
    }

    .bh-nav-trigger {
        display: inline-flex;
    }
}

.bh-nav-item-head {
    display: flex;
    align-items: stretch;
    min-height: var(--header-nav-height);
}

.bh-nav-service-link {
    flex: 1;
}

.bh-nav-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    padding: 0 .5rem;
    background: transparent;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, .12);
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    font-size: .75rem;
    line-height: 1;
}

.bh-nav-trigger:hover,
.bh-nav-item.open .bh-nav-trigger {
    background: rgba(255, 255, 255, .08);
}

.bh-has-mega .bh-nav-trigger::after {
    content: none;
}

.platform-new-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .1rem .45rem;
    font-size: .625rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    border-radius: 999px;
    box-shadow: 0 1px 4px rgba(239, 68, 68, .35);
    vertical-align: middle;
    animation: new-badge-pulse 2.5s ease-in-out infinite;
}

.platform-badge .platform-new-badge,
.card-link .platform-new-badge {
    margin-left: .35rem;
}

.nav-dropdown-menu .platform-new-badge,
.bh-mega-link .platform-new-badge {
    margin-left: auto;
}

@keyframes new-badge-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 1px 4px rgba(239, 68, 68, .35); }
    50% { transform: scale(1.06); box-shadow: 0 2px 8px rgba(245, 158, 11, .5); }
}

.nav-service-menu .nav-platform-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}

.hero-minimal {
    padding: 2rem 0 1.5rem;
}

.hero-minimal h1 {
    margin-bottom: .5rem;
}

.section-lead {
    color: var(--color-text-muted);
    margin-bottom: 1.25rem;
    max-width: 52ch;
}

/* Hero */
.hero {
    background: var(--hero-bg);
    color: var(--hero-text);
    padding: 3rem 0 4rem;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--color-border);
}

.hero::before {
    display: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-compact { padding: 2rem 0 3rem; }

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
}

@media (min-width: 992px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
        gap: 2rem;
    }
}

.hero-main {
    min-width: 0;
}

.hero-ad-column {
    min-width: 0;
}

.hero-ad-column .ad-zone {
    background: var(--color-bg);
    border: 1px dashed var(--color-border);
    border-radius: var(--radius);
    padding: 1rem;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-ad-column .ad-label {
    color: var(--color-text-muted);
}

.hero-ad-column .ad-text,
.hero-ad-column .ad-text-link,
.hero-ad-column .ad-text-html {
    background: var(--color-surface);
}

.hero h1 {
    font-size: clamp(1.75rem, 5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.hero-desc {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    max-width: 640px;
}

/* URL Form */
.url-form { max-width: 760px; }

.url-form-bar {
    display: flex;
    align-items: stretch;
    border: 2px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--color-surface);
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
    transition: border-color .15s, box-shadow .15s;
}

.url-form-bar:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}

.url-form-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    min-width: 0;
    background: var(--color-surface);
}

.url-form-bar .url-input {
    flex: 1;
    min-width: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--color-text);
    padding: 1rem 0.75rem 1rem 1.25rem;
    box-shadow: none;
}

.url-form-bar .url-input:focus {
    box-shadow: none;
}

.url-paste-btn {
    flex-shrink: 0;
    border: 0;
    background: transparent;
    color: var(--color-primary);
    font-size: .875rem;
    font-weight: 600;
    padding: 0 1rem;
    cursor: pointer;
    white-space: nowrap;
}

.url-paste-btn:hover {
    color: var(--color-secondary);
    text-decoration: underline;
}

.url-form-service {
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    min-width: 9.5rem;
    background: var(--color-primary);
    border-left: 1px solid rgba(255,255,255,.25);
}

.url-form-service .service-select {
    appearance: none;
    width: 100%;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: .9375rem;
    font-weight: 600;
    padding: 1rem 2rem 1rem 1rem;
    cursor: pointer;
    outline: none;
}

.url-form-service .service-select option {
    color: #0f172a;
    background: #fff;
}

.url-form-service .service-select-caret {
    position: absolute;
    right: .85rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,.85);
    font-size: .75rem;
    pointer-events: none;
}

.url-form-submit-loading {
    display: none;
    align-items: center;
    gap: .5rem;
}

.url-form.is-loading .url-form-submit-label {
    display: none;
}

.url-form.is-loading .url-form-submit-loading {
    display: inline-flex;
}

.url-form-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: url-form-spin .7s linear infinite;
    flex-shrink: 0;
}

@keyframes url-form-spin {
    to { transform: rotate(360deg); }
}

.url-form.is-loading .url-form-bar,
.url-form.is-loading .url-paste-btn,
.url-form.is-loading .url-form-service {
    pointer-events: none;
    opacity: .75;
}

.url-form-submit {
    width: 100%;
}

.section .url-form-bar {
    border-color: var(--color-border);
    box-shadow: var(--shadow);
    background: var(--color-surface);
}

.section .url-form-bar:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}

.section .url-form-input-wrap {
    background: var(--color-surface);
}

.section .url-form-bar .url-input {
    background: transparent;
}

.result-combined-note {
    margin: 0 0 1.25rem;
    padding: .75rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--color-bg);
    color: var(--color-text);
    font-size: .9375rem;
    border-left: 4px solid var(--color-primary);
}

.result-download-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 1100px) {
    .result-download-split {
        grid-template-columns: 1fr 1fr;
        gap: 1.75rem;
        align-items: start;
    }
}

.result-download-col {
    min-width: 0;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
}

.result-download-col .links-table h2 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: .75rem;
    padding-bottom: .625rem;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
}

.result-download-video {
    border-top: 3px solid var(--color-primary);
}

.result-download-audio {
    border-top: 3px solid var(--color-primary);
}

.result-download-col .links-table {
    margin-top: 0;
}

.result-download-col .links-table + .links-table {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.result-card-combined .result-info {
    min-width: 0;
}

.links-table + .links-table {
    margin-top: 1.75rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--color-border);
}

.url-input-group {
    display: flex;
    gap: .5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

/* Legacy standalone input (fallback) */
.url-input {
    flex: 1;
    min-width: 200px;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    border: 2px solid rgba(255,255,255,.3);
    border-radius: var(--radius);
    background: rgba(255,255,255,.95);
    color: var(--color-text);
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}

.url-input:focus {
    border-color: #fff;
    box-shadow: 0 0 0 3px rgba(255,255,255,.3);
}

.section .url-input {
    border-color: var(--color-border);
    background: var(--color-surface);
}
.section .url-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(123, 31, 162, .15);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    text-decoration: none;
    transition: background .15s, transform .1s;
    min-height: 48px;
    touch-action: manipulation;
}

.btn:active { transform: scale(.98); }

.btn-primary {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, .25);
}
.btn-primary:hover {
    background: var(--color-primary-dark);
}

.btn-secondary {
    background: rgba(255,255,255,.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,.45);
}
.btn-secondary:hover { background: rgba(255,255,255,.28); }

.section .btn-primary {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, .2);
}
.section .btn-primary:hover {
    background: var(--color-primary-dark);
}

.section .btn-secondary {
    background: var(--color-surface);
    color: var(--color-text);
    border: 2px solid var(--color-border);
}
.section .btn-secondary:hover {
    background: var(--color-bg);
    border-color: var(--color-primary);
    color: var(--color-text);
}

.result-actions .btn-secondary {
    background: var(--color-bg);
    color: var(--color-text);
    border: 2px solid var(--color-border);
}

.result-actions .btn-secondary:hover {
    background: var(--color-surface);
    border-color: var(--color-primary);
}

.btn-lg { padding: 1rem 2rem; font-size: 1.0625rem; width: 100%; }
.btn-sm { padding: .5rem 1rem; font-size: .875rem; min-height: 40px; }

/* Platform & service icons */
.platform-icon,
.service-icon {
    display: block;
    flex-shrink: 0;
    object-fit: contain;
}

.platform-icon-xs, .service-icon-xs { width: 16px; height: 16px; }
.platform-icon-sm, .service-icon-sm { width: 20px; height: 20px; }
.platform-icon-md, .service-icon-md { width: 24px; height: 24px; }
.platform-icon-lg, .service-icon-lg { width: 32px; height: 32px; }

.bh-nav-service-link {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
}

.platform-page-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .625rem;
}

.service-page-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .625rem;
}

/* Platform badges */
.service-platform-group + .service-platform-group {
    margin-top: 1rem;
}

.platform-icons { margin-top: 2rem; }
.platform-label {
    font-size: .875rem;
    color: var(--color-text-muted);
    margin-bottom: .75rem;
}

.icon-grid {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.platform-badge {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: var(--color-bg);
    color: var(--color-text);
    padding: .4rem .85rem;
    border-radius: 999px;
    font-size: .8125rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--color-border);
    transition: transform .15s, box-shadow .15s, background .15s, border-color .15s;
}
.platform-badge:hover {
    background: var(--color-surface);
    border-color: var(--color-primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.service-group-label,
.service-section-title {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .8125rem;
    font-weight: 700;
    color: var(--color-text-muted);
    margin: .75rem 0 .5rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.section-alt .service-section-title {
    color: var(--color-text);
}

/* Sections */
.site-main { flex: 1; }

.section { padding: 3rem 0; }
.section-alt {
    background: var(--color-surface);
}

.section h2 {
    font-size: clamp(1.375rem, 3vw, 1.75rem);
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--color-border);
    display: block;
    width: 100%;
}

.section h3 {
    color: var(--color-text);
}

.steps-list {
    padding-left: 1.25rem;
    display: grid;
    gap: .75rem;
}

.steps-list li { padding-left: .5rem; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--color-surface);
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    border-top: 3px solid var(--color-primary);
    box-shadow: var(--shadow);
    transition: transform .15s, box-shadow .15s;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.section-alt .feature-card { background: var(--color-bg); }

.feature-card h3 { font-size: 1.0625rem; margin-bottom: .5rem; }
.feature-card p { color: var(--color-text-muted); font-size: .9375rem; }

.platform-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: .75rem;
}

.card-link {
    display: flex;
    align-items: center;
    gap: .625rem;
    padding: 1rem 1.125rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-primary);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--color-text);
    font-weight: 600;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}

.card-link .card-link-arrow {
    margin-left: auto;
    opacity: .55;
}
.card-link:hover {
    border-left-color: var(--color-primary-dark);
    box-shadow: var(--shadow-lg);
    transform: translateX(4px);
    color: var(--color-primary);
}

.section-alt .card-link { background: var(--color-bg); }

/* FAQ */
.faq-list { display: grid; gap: .75rem; }

.faq-item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-primary-light);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow);
}

.section-alt .faq-item { background: var(--color-bg); }

.faq-item summary {
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    color: var(--color-text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p, .faq-item .faq-answer { margin-top: .75rem; color: var(--color-text-muted); font-size: .9375rem; }
.faq-item .faq-answer ul, .faq-item .faq-answer ol { margin: .5rem 0 .5rem 1.25rem; }
.faq-item .faq-answer a { color: var(--color-primary); }

.result-card {
    background: var(--color-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: visible;
    border-top: 3px solid var(--color-primary);
}

.result-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

@media (min-width: 768px) {
    .result-card:not(.result-card-combined) .result-top {
        grid-template-columns: 320px 1fr;
    }

    .result-card-combined .result-top {
        grid-template-columns: 280px 1fr;
    }
}

.result-thumb img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.result-meta,
.result-info {
    padding: 1.5rem;
    min-width: 0;
}

.result-downloads-panel {
    padding: 0 1.5rem 1.5rem;
    border-top: 1px solid var(--color-border);
}

.result-card-combined .result-actions {
    padding: 1.25rem 1.5rem 1.5rem;
    margin-top: 0;
}

.result-main {
    min-width: 0;
}

.platform-tag {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    background: var(--color-bg);
    color: var(--color-text);
    padding: .25rem .85rem;
    border-radius: 999px;
    font-size: .8125rem;
    font-weight: 700;
    margin-bottom: .75rem;
    border: 1px solid var(--color-border);
}

.result-title {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    margin-bottom: .5rem;
    line-height: 1.3;
}

.result-author, .result-duration {
    color: var(--color-text-muted);
    font-size: .9375rem;
    margin-bottom: .5rem;
}

.notice-box {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin: 1rem 0;
    font-size: .9375rem;
}

.notice-box.notice-success {
    background: #f0fdf4;
    border-color: #86efac;
}

.btn-download {
    background: var(--color-success) !important;
    color: #fff !important;
    min-width: 120px;
    font-family: inherit;
    box-shadow: none;
}

.quality-badge {
    display: inline-block;
    background: var(--color-bg);
    color: var(--color-text);
    padding: .125rem .5rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
    margin-left: .5rem;
    border: 1px solid var(--color-border);
}

.result-download-col .link-row-download {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

@media (max-width: 640px) {
    .result-download-col .link-row-download {
        flex-direction: column;
        align-items: stretch;
        gap: .75rem;
    }
}

.download-hint {
    color: var(--color-text-muted);
    font-size: .9375rem;
    margin-bottom: 1rem;
}

.link-row-download {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: var(--color-surface);
    padding: .875rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: .5rem;
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--color-primary);
}

.links-secondary {
    margin-top: 2rem;
    opacity: .85;
}

.links-table { margin-top: 1.5rem; }
.links-table h2 { font-size: 1.125rem; margin-bottom: 1rem; }

.link-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .75rem 0;
    border-bottom: 1px solid var(--color-border);
    flex-wrap: wrap;
}

.link-label { font-weight: 500; }
.link-info { font-size: .8125rem; color: var(--color-text-muted); word-break: break-all; }

.result-actions {
    margin-top: 1.5rem;
    padding: 0 1.5rem 1.5rem;
}

.result-card-combined .result-actions {
    margin-top: 0;
    border-top: 1px solid var(--color-border);
    padding-top: 1.25rem;
}

/* Error */
.error-card {
    background: var(--color-surface);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    max-width: 600px;
    margin: 0 auto;
}

.error-message {
    color: var(--color-error);
    margin: 1rem 0 1.5rem;
    font-size: 1.0625rem;
}

/* Prose */
.prose h2 { margin-top: 2rem; margin-bottom: 1rem; }
.prose p { margin-bottom: 1rem; color: var(--color-text-muted); }
.prose ul, .prose ol { margin-bottom: 1rem; padding-left: 1.5rem; color: var(--color-text-muted); }
.prose code {
    background: #f1f5f9;
    padding: .125rem .375rem;
    border-radius: 4px;
    font-size: .875rem;
    word-break: break-all;
}

.url-examples { list-style: none; padding: 0; }
.url-examples li { margin-bottom: .5rem; }

/* Footer */
.site-footer {
    background: var(--footer-bg);
    color: rgba(255, 255, 255, .75);
    padding: 2rem 0 1.5rem;
    margin-top: auto;
    position: relative;
}

.footer-top-strip {
    display: none;
}

.footer-brand {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: .625rem;
    font-size: 1.375rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
}

.footer-logo-text {
    color: #fff;
}

.footer-tagline {
    margin-top: .75rem;
    max-width: 420px;
    font-size: .875rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, .65);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h3, .footer-col h4 {
    color: #ff9800;
    margin-bottom: 1rem;
    font-size: .9375rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .5rem; }
.footer-col a {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: rgba(255, 255, 255, .72);
    text-decoration: none;
    font-size: .875rem;
    transition: color .15s, padding-left .15s;
}
.footer-col a:hover {
    color: #fff;
    padding-left: .25rem;
}

.result-section,
.result-layout,
.result-section .container {
    overflow: visible;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding-top: 1.25rem;
    text-align: center;
    font-size: .8125rem;
    color: rgba(255, 255, 255, .55);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* Mobile nav – legacy dropdowns only (BH header uses .bh-header-nav rules above) */
@media (max-width: 900px) {
    .nav-dropdown { width: 100%; }

    .nav-dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        background: #141414;
        max-height: none;
        padding: 0;
    }

    .nav-dropdown.open .nav-dropdown-menu { display: block; }

    .nav-dropdown-menu a {
        color: #e5e5e5;
        padding: .75rem 1.25rem .75rem 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, .05);
    }

    .nav-dropdown-menu a:hover {
        background: rgba(255, 255, 255, .06);
        color: #fff;
    }

    .nav-dropdown:hover .nav-dropdown-menu { display: none; }
    .nav-dropdown.open .nav-dropdown-menu { display: block; }
}

@media (max-width: 768px) {
    .url-form-bar {
        flex-direction: column;
    }

    .url-form-service {
        width: 100%;
        min-width: 0;
        border-left: 0;
        border-top: 1px solid var(--color-border);
    }

    .url-form-service .service-select {
        padding: .9rem 2rem .9rem 1rem;
    }

    .url-input-group { flex-direction: column; }
    .url-input-group .btn { width: 100%; }

    .hero { padding: 2rem 0 3rem; }
    .section { padding: 2rem 0; }
}

@media (min-width: 768px) {
    .btn-lg { width: auto; }
}
