
.player-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0;
}

.content-box {
    background: white;
    padding: 1.5rem;
    width: 100%;
}

.scene-img {
    width: 100%;
    height: auto;
    max-height: 45vh;
    object-fit: contain;
    object-position: center;
    background: #f8f9fa;
    cursor: zoom-in;
}

/* New Detail Story Styles */
.story-hero-section {
    position: relative;
    padding: 4rem 0 6rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 50%, #fef5ff 100%);
    overflow: hidden;
}

.story-hero-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(147, 241, 173, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.story-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    padding: 0.5rem 1rem;
    font-weight: 600;
    border-radius: 50rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.story-image-container {
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.08); /* Soft drop shadow */
    transition: transform 0.3s ease;
    background: white;
    padding: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.story-image-container:hover {
    transform: translateY(-5px);
}

.story-image {
    border-radius: 1rem;
    width: 100%;
    height: auto;
    display: block;
}

.story-parameter-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 1rem;
    padding: 1.5rem;
    height: 100%;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.story-parameter-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
    border-color: rgba(13, 110, 253, 0.2);
}

.story-parameter-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: #0d6efd; /* Primary color */
    background: rgba(13, 110, 253, 0.1);
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.audio-preview-card {
    background: #fff;
    border-radius: 1rem;
    border: 1px solid #e9ecef;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.experience-item {
    background: white;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: background-color 0.2s;
}

.experience-item:hover {
    background: #f8f9fa;
}

.experience-icon {
    color: #198754; /* Success color */
    font-size: 1.25rem;
}

.sticky-action-bar {
    position: sticky;
    bottom: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.04);
}


@media (min-width: 769px) {
    .player-wrapper {
        align-items: center;
        padding: 1rem;
    }

    .content-box {
        border-radius: 1rem;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
        padding: 2rem;
        max-width: 700px;
        margin: 0 auto;
    }

    .scene-img {
        max-height: 60vh;
        border-radius: 0.5rem;
    }
}

.story-card .badge {
    font-size: .75rem;
}

.story-row {
    align-items: center;
    min-height: 140px;
}

.story-thumb {
    width: 140px;
    height: 140px;
    flex: 0 0 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== LIGHTBOX ===== */
.nf-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    cursor: zoom-out;
    transition: background .22s ease;
    /* hidden by default via visibility so it's out of tab order */
    visibility: hidden;
    pointer-events: none;
}

.nf-lightbox.is-open {
    background: rgba(0, 0, 0, .88);
    visibility: visible;
    pointer-events: auto;
}

.nf-lightbox__img {
    max-width: 95vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: .5rem;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .6);
    cursor: default;
    transform: scale(.92);
    opacity: 0;
    transition: transform .22s ease, opacity .22s ease;
    /* prevent click on image from closing lightbox */
    pointer-events: none;
}

.nf-lightbox.is-open .nf-lightbox__img {
    transform: scale(1);
    opacity: 1;
}

.nf-lightbox__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    border: 1.5px solid rgba(255, 255, 255, .3);
    color: #fff;
    font-size: 1.1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .15s;
    flex-shrink: 0;
}

.nf-lightbox__close:hover {
    background: rgba(255, 255, 255, .28);
}

.nf-lightbox__hint {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, .5);
    font-size: .75rem;
    white-space: nowrap;
    pointer-events: none;
}

.story-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.story-card .card-body {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

@media (max-width: 576px) {
    .story-row {
        flex-direction: column;
        align-items: stretch;
        gap: .75rem !important;
    }

    .story-thumb {
        width: 100%;
        height: 160px;
        flex: 0 0 auto;
    }

    .story-thumb img {
        border-radius: .75rem !important;
    }

    .story-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: .25rem !important;
    }

    .story-steps {
        margin-left: 0 !important;
    }

    .story-footer {
        flex-direction: column;
        align-items: stretch;
        gap: .75rem !important;
    }

    .story-actions {
        width: 100%;
        display: grid;
        gap: .5rem;
    }

    .story-actions .btn,
    .story-actions form,
    .story-actions form button {
        width: 100%;
    }

    .story-actions form button {
        justify-content: center;
        gap: .5rem;
    }
}

/* =============================================
   STORIES LIBRARY — sl-* namespace
   ============================================= */

.sl-library {
    padding: 1.5rem 0 3rem;
}

/* --- Header --- */
.sl-header {
    margin-bottom: 2.5rem;
}

.sl-header-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.15;
    color: #111827;
    margin-bottom: .75rem;
    letter-spacing: -.025em;
}

.sl-header-accent {
    color: #ff8a00;
}

.sl-header-sub {
    color: #6b7280;
    font-size: 1rem;
    max-width: 560px;
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.sl-trust-pills {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.sl-trust-pill {
    font-size: .78rem;
    font-weight: 600;
    color: #374151;
    background: #f3f4f6;
    border-radius: 999px;
    padding: .28rem .8rem;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    border: 1px solid rgba(0,0,0,.06);
}

.sl-trust-pill i {
    color: #22c55e;
    font-size: .85rem;
}

/* --- Filter bar --- */
.sl-filter-bar {
    display: flex;
    align-items: center;
    gap: .75rem 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    padding: .75rem 1rem;
    background: #f9fafb;
    border-radius: .75rem;
    border: 1px solid rgba(0,0,0,.07);
}

.sl-filter-label {
    font-size: .83rem;
    font-weight: 600;
    color: #9ca3af;
    white-space: nowrap;
}

.sl-filter-select {
    border: 1px solid rgba(0,0,0,.14);
    border-radius: .5rem;
    padding: .35rem .75rem;
    font-size: .875rem;
    color: #111827;
    background: #fff;
    cursor: pointer;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}

.sl-filter-select:focus {
    border-color: #ff8a00;
    box-shadow: 0 0 0 3px rgba(255,138,0,.12);
}

.sl-filter-clear {
    font-size: .8rem;
    color: #9ca3af;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    transition: color .15s;
}

.sl-filter-clear:hover {
    color: #374151;
}

.sl-filter-count {
    font-size: .8rem;
    color: #9ca3af;
    font-weight: 600;
}

/* --- Grid --- */
.sl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

@media (min-width: 992px) {
    .sl-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .sl-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Card --- */
.sl-card {
    background: #fff;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,.07);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,.05);
    transition: box-shadow .2s ease, transform .2s ease;
}

.sl-card:hover {
    box-shadow: 0 8px 36px rgba(0,0,0,.13);
    transform: translateY(-3px);
}

.sl-card--locked {
    opacity: .88;
}

/* Card image */
.sl-card-img-link {
    display: block;
    text-decoration: none;
    flex-shrink: 0;
}

.sl-card-img-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f3f4f6;
}

.sl-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}

.sl-card:hover .sl-card-img-wrap img {
    transform: scale(1.05);
}

/* Type badge (top-left) */
.sl-card-type-badge {
    position: absolute;
    top: .75rem;
    left: .75rem;
    padding: .25rem .65rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    letter-spacing: .01em;
}

.sl-card-type-badge--story {
    background: rgba(255, 138, 0, .9);
    color: #fff;
}

.sl-card-type-badge--ritual {
    background: rgba(99, 67, 190, .9);
    color: #fff;
}

/* Access badges (top-right) */
.sl-card-access-badge {
    position: absolute;
    top: .75rem;
    right: .75rem;
    font-size: .7rem;
    font-weight: 700;
    padding: .25rem .65rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.sl-card-access-badge--free {
    background: rgba(34, 197, 94, .9);
    color: #fff;
}

.sl-card-access-badge--unlocked {
    background: rgba(34, 197, 94, .85);
    color: #fff;
}

/* Lock overlay */
.sl-card-lock-overlay {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, .38);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: rgba(255,255,255,.75);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

/* Card body */
.sl-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: .65rem;
}

.sl-card-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.25;
}

.sl-card-title a {
    color: #111827;
    text-decoration: none;
    transition: color .15s;
}

.sl-card-title a:hover {
    color: #ff8a00;
}

.sl-card--ritual .sl-card-title a:hover {
    color: #6343be;
}

.sl-card-desc {
    font-size: .84rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Meta row */
.sl-card-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.sl-card-meta-item {
    font-size: .77rem;
    color: #9ca3af;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
}

.sl-card-meta-item i {
    font-size: .72rem;
}

/* Benefit tag */
.sl-card-benefit {
    font-size: .78rem;
    font-weight: 600;
    color: #374151;
    background: #fafafa;
    border-radius: .5rem;
    padding: .4rem .7rem;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border-left: 3px solid #ff8a00;
    line-height: 1.3;
}

.sl-card--ritual .sl-card-benefit {
    border-left-color: #6343be;
}

.sl-card-benefit i {
    color: #ff8a00;
    font-size: .82rem;
    flex-shrink: 0;
}

.sl-card--ritual .sl-card-benefit i {
    color: #6343be;
}

/* Actions */
.sl-card-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: .45rem;
    padding-top: .25rem;
}

.sl-btn-buy {
    background: #ff8a00;
    color: #fff !important;
    border: none;
    border-radius: .625rem;
    font-weight: 700;
    font-size: .875rem;
    padding: .625rem 1rem;
    transition: background .15s, transform .1s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
}

.sl-btn-buy:hover {
    background: #e07a00;
    transform: translateY(-1px);
}

.sl-btn-assign {
    background: #eff6ff;
    color: #1d4ed8 !important;
    border: 1px solid #bfdbfe;
    border-radius: .625rem;
    font-weight: 600;
    font-size: .875rem;
    padding: .55rem 1rem;
    transition: background .15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
}

.sl-btn-assign:hover {
    background: #dbeafe;
}

.sl-btn-detail {
    background: transparent;
    color: #6b7280 !important;
    border: 1px solid #e5e7eb;
    border-radius: .625rem;
    font-weight: 600;
    font-size: .875rem;
    padding: .55rem 1rem;
    text-align: center;
    transition: border-color .15s, color .15s;
    text-decoration: none !important;
    display: block;
}

.sl-btn-detail:hover {
    border-color: #9ca3af;
    color: #374151 !important;
}

.sl-card-login-note {
    font-size: .75rem;
    color: #9ca3af;
    text-decoration: none;
    text-align: center;
    display: block;
    transition: color .15s;
    margin-top: .1rem;
}

.sl-card-login-note:hover {
    color: #6b7280;
}

.sl-purchases-disabled {
    font-size: .8rem;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: .35rem;
    padding: .4rem 0;
}

/* --- Empty state --- */
.sl-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: #6b7280;
}

.sl-empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1;
}

.sl-empty h2 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.35rem;
    color: #111827;
    margin-bottom: .5rem;
}

.sl-empty p {
    font-size: .95rem;
    max-width: 360px;
    margin: 0 auto .75rem;
}

/* =============================================
   STORY DETAIL — sd-* namespace
   ============================================= */

/* --- Breadcrumb --- */
.sd-breadcrumb {
    margin-bottom: 1.25rem;
}

.sd-breadcrumb-link {
    font-size: .85rem;
    font-weight: 600;
    color: #9ca3af;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    transition: color .15s;
}

.sd-breadcrumb-link:hover {
    color: #374151;
}

/* --- Hero --- */
.sd-hero {
    border-radius: 1.5rem;
    padding: 2.25rem;
    margin-bottom: 1.75rem;
    background: linear-gradient(135deg, #fffbf2 0%, #fff8ec 55%, #f4f8ff 100%);
    border: 1px solid rgba(255, 138, 0, .1);
}

.sd-hero--ritual {
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 55%, #faf5ff 100%);
    border-color: rgba(99, 67, 190, .12);
}

.sd-type-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border-radius: 999px;
    padding: .3rem .85rem;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .02em;
    margin-bottom: 1rem;
}

.sd-type-pill--story {
    background: rgba(255, 138, 0, .12);
    color: #7a4300;
}

.sd-type-pill--ritual {
    background: rgba(99, 67, 190, .12);
    color: #3b1e8a;
}

.sd-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    line-height: 1.15;
    color: #111827;
    letter-spacing: -.025em;
    margin-bottom: .85rem;
}

.sd-lead {
    font-size: 1rem;
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 480px;
}

/* Quick stats */
.sd-quick-stats {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.25rem;
    margin-bottom: 1.75rem;
}

.sd-stat {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .82rem;
    font-weight: 600;
    color: #374151;
}

.sd-stat i {
    color: #ff8a00;
    font-size: .8rem;
}

.sd-hero--ritual .sd-stat i {
    color: #6343be;
}

/* Hero CTA */
.sd-hero-cta {
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.sd-btn-buy {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    background: #ff8a00;
    color: #fff;
    border: none;
    border-radius: .875rem;
    font-weight: 700;
    font-size: 1rem;
    padding: .8rem 1.5rem;
    cursor: pointer;
    transition: background .15s, transform .1s, box-shadow .15s;
    box-shadow: 0 4px 16px rgba(255, 138, 0, .35);
    width: fit-content;
}

.sd-btn-buy:hover {
    background: #e07a00;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 138, 0, .4);
}

.sd-btn-price {
    background: rgba(255,255,255,.22);
    border-radius: .375rem;
    padding: .15rem .5rem;
    font-size: .88rem;
    font-weight: 800;
}

.sd-cta-note {
    font-size: .78rem;
    color: #9ca3af;
    margin: 0;
}

/* Access banners */
.sd-access-banner {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    border-radius: 1rem;
    padding: 1rem 1.25rem;
}

.sd-access-banner strong {
    display: block;
    font-size: .925rem;
    font-weight: 700;
    margin-bottom: .15rem;
}

.sd-access-banner p {
    font-size: .82rem;
    margin: 0;
    opacity: .75;
}

.sd-access-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: .1rem;
}

.sd-access-banner--owned {
    background: rgba(34, 197, 94, .1);
    border: 1px solid rgba(34, 197, 94, .25);
    color: #14532d;
}

.sd-access-banner--owned .sd-access-icon {
    color: #22c55e;
}

.sd-access-banner--free {
    background: rgba(255, 138, 0, .08);
    border: 1px solid rgba(255, 138, 0, .2);
    color: #7a4300;
}

.sd-access-banner--free .sd-access-icon {
    color: #ff8a00;
}

.sd-access-banner--info {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    color: #6b7280;
}

/* Hero image */
.sd-hero-img-wrap {
    position: relative;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0,0,0,.14);
    aspect-ratio: 4 / 3;
    background: #f3f4f6;
}

.sd-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sd-img-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: .75rem;
    font-weight: 700;
    padding: .3rem .8rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.sd-img-badge--free {
    background: rgba(34, 197, 94, .9);
    color: #fff;
}

.sd-img-badge--owned {
    background: rgba(34, 197, 94, .85);
    color: #fff;
}

.sd-img-badge--locked {
    background: rgba(17, 24, 39, .7);
    color: #fff;
}

/* --- Sections --- */
.sd-section {
    margin-bottom: 1.75rem;
}

.sd-section--tinted {
    background: #f9fafb;
    border-radius: 1.25rem;
    padding: 1.75rem;
    border: 1px solid rgba(0,0,0,.05);
}

.sd-section-eyebrow {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #ff8a00;
    margin-bottom: .4rem;
}

.sd-section-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(1.15rem, 2.5vw, 1.5rem);
    font-weight: 700;
    color: #111827;
    letter-spacing: -.02em;
    margin-bottom: .5rem;
}

.sd-section-subtitle {
    font-size: .875rem;
    color: #9ca3af;
    margin-bottom: 1.25rem;
}

/* --- Audio --- */
.sd-audio-card {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    background: #fff;
    border-radius: 1.25rem;
    padding: 1.5rem;
    border: 1px solid rgba(0,0,0,.07);
    box-shadow: 0 2px 12px rgba(0,0,0,.05);
}

.sd-audio-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(255, 138, 0, .1);
    color: #ff8a00;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.sd-audio-content {
    flex: 1;
    min-width: 0;
}

.sd-audio-title {
    font-weight: 700;
    font-size: .925rem;
    color: #111827;
    margin-bottom: .2rem;
}

.sd-audio-subtitle {
    font-size: .78rem;
    color: #9ca3af;
    margin-bottom: .75rem;
}

.sd-audio-player {
    width: 100%;
    height: 2.5rem;
    border-radius: .5rem;
    accent-color: #ff8a00;
}

/* --- Experiences --- */
.sd-experiences-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: .75rem;
    margin-top: 1.25rem;
}

.sd-experience-item {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    background: #fff;
    border-radius: .75rem;
    padding: .85rem 1rem;
    border: 1px solid rgba(0,0,0,.06);
    font-size: .875rem;
    color: #374151;
    line-height: 1.45;
}

.sd-experience-icon {
    color: #22c55e;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: .05rem;
}

/* --- Chip placement --- */
.sd-places-grid {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.25rem;
}

.sd-place-card {
    background: #fff;
    border-radius: .875rem;
    padding: .85rem 1.1rem;
    border: 1px solid rgba(0,0,0,.07);
    text-align: center;
    min-width: 90px;
    flex: 1;
    max-width: 140px;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.sd-place-num {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: rgba(255, 138, 0, .35);
    line-height: 1;
    margin-bottom: .3rem;
}

.sd-place-name {
    font-size: .8rem;
    font-weight: 600;
    color: #374151;
    line-height: 1.3;
}

/* --- Parameters --- */
.sd-params-grid {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.25rem;
}

.sd-param-card {
    background: #fff;
    border-radius: .875rem;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(0,0,0,.06);
    flex: 1;
    min-width: 120px;
    max-width: 180px;
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.sd-param-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: .5rem;
    background: rgba(255, 138, 0, .1);
    color: #ff8a00;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    margin-bottom: .1rem;
}

.sd-param-icon--ritual {
    background: rgba(99, 67, 190, .1);
    color: #6343be;
}

.sd-param-label {
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #9ca3af;
}

.sd-param-value {
    font-size: .95rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
}

/* --- Sticky footer --- */
.sd-sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 -4px 24px rgba(0,0,0,.08);
    padding: .85rem 0;
}

.sd-sticky-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.sd-sticky-info {
    min-width: 0;
}

.sd-sticky-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: .975rem;
    font-weight: 700;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sd-sticky-sub {
    font-size: .78rem;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: .3rem;
    margin-top: .1rem;
}

.sd-sticky-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-shrink: 0;
}

.sd-sticky-btn {
    background: #ff8a00;
    color: #fff !important;
    border: none;
    border-radius: .75rem;
    font-weight: 700;
    font-size: .875rem;
    padding: .6rem 1.25rem;
    cursor: pointer;
    transition: background .15s;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    text-decoration: none !important;
    white-space: nowrap;
}

.sd-sticky-btn:hover {
    background: #e07a00;
}

.sd-sticky-btn--secondary {
    background: #f3f4f6;
    color: #374151 !important;
}

.sd-sticky-btn--secondary:hover {
    background: #e5e7eb;
}

.sd-sticky-back {
    font-size: .8rem;
    color: #9ca3af;
    text-decoration: none;
    transition: color .15s;
    white-space: nowrap;
}

.sd-sticky-back:hover {
    color: #374151;
}

@media (max-width: 575px) {
    .sd-hero {
        padding: 1.5rem;
    }

    .sd-audio-card {
        flex-direction: column;
        gap: .85rem;
    }

    .sd-param-card {
        min-width: calc(50% - .375rem);
        max-width: none;
        flex: none;
    }

    .sd-place-card {
        min-width: 70px;
        max-width: 100px;
    }

    .sd-sticky-inner {
        padding: 0 1rem;
    }

    .sd-sticky-back {
        display: none;
    }
}

/* --- Jak to funguje (kompaktní pruh, jen pro nepřihlášené) --- */
.sd-howto {
    margin-bottom: 1.75rem;
    padding: 1rem 1.25rem;
    border: 1px dashed rgba(0,0,0,.12);
    border-radius: 1rem;
}

.sd-howto__label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #9ca3af;
    margin-bottom: .6rem;
}

.sd-howto__steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sd-howto__step {
    display: flex;
    gap: .6rem;
    align-items: flex-start;
    font-size: .82rem;
    line-height: 1.4;
    color: #6b7280;
}

.sd-howto__step i {
    color: #ff8a00;
    font-size: 1rem;
    margin-top: .05rem;
}

.sd-howto--ritual .sd-howto__step i {
    color: #6343be;
}

.sd-howto__step strong {
    display: block;
    color: #374151;
    font-weight: 600;
}

@media (max-width: 767px) {
    .sd-howto__steps {
        grid-template-columns: 1fr;
        gap: .6rem;
    }
}
