body.home-page {
    background:
        radial-gradient(circle at 0% 0%, rgba(64, 196, 255, 0.18) 0%, rgba(64, 196, 255, 0) 36%),
        radial-gradient(circle at 100% 10%, rgba(126, 87, 255, 0.14) 0%, rgba(126, 87, 255, 0) 34%),
        linear-gradient(180deg, #f4f7ff 0%, #edf3fb 42%, #eef4fb 100%);
}

.home-page .page-main {
    padding-top: 28px;
    padding-bottom: 84px;
}

.home-page .site-header {
    background: rgba(245, 249, 255, 0.86);
}

.home-page .hero,
.home-page .home-library {
    scroll-margin-top: 108px;
}

.home-hero {
    padding: 36px 0 22px;
}

.home-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
}

.home-hero-copy {
    display: grid;
    gap: 0;
}

.home-page .home-hero .kicker {
    display: block;
    max-width: 34ch;
    line-height: 1.4;
    text-wrap: balance;
}

.home-page .home-hero .hero-title {
    font-size: clamp(1.45rem, 3.2vw, 2.4rem);
    line-height: 1.12;
}

.home-hero-detail {
    margin: 16px 0 0;
    max-width: 58ch;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.75;
}

.home-proof-grid {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.home-proof-card {
    min-height: 100%;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(188, 200, 218, 0.8);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 10px 22px rgba(15, 26, 46, 0.07);
}

.home-proof-kicker {
    margin: 0 0 8px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #45658f;
}

.home-proof-card h2 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    line-height: 1.3;
}

.home-proof-card p {
    margin: 0;
}

.home-feature-panel {
    position: relative;
    overflow: hidden;
    padding: 22px;
    border-radius: 28px;
    border: 1px solid rgba(189, 204, 223, 0.9);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(242, 247, 255, 0.9) 100%);
    box-shadow: 0 28px 70px rgba(18, 31, 52, 0.14);
}

.home-feature-panel:focus {
    outline: 3px solid rgba(31, 111, 235, 0.2);
    outline-offset: 3px;
}

.home-feature-media {
    aspect-ratio: 16 / 9;
    border-radius: 22px;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(74, 172, 255, 0.45), rgba(74, 172, 255, 0) 42%),
        linear-gradient(135deg, #0f223c 0%, #152d52 54%, #132744 100%);
    border: 1px solid rgba(123, 150, 192, 0.35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.home-feature-media iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.home-feature-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: stretch;
}

.home-feature-placeholder-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    color: #f3f8ff;
}

.home-feature-placeholder-inner p {
    margin: 0;
    max-width: 28ch;
    font-size: 1rem;
    line-height: 1.55;
}

.home-placeholder-pill {
    display: inline-flex;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.home-placeholder-icon {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.home-feature-copy {
    margin-top: 18px;
}

.home-feature-title {
    margin: 0;
    font-size: clamp(1.6rem, 2.8vw, 2rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.home-feature-summary {
    margin: 12px 0 0;
    line-height: 1.7;
}

.home-tag-list {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.home-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(16, 33, 60, 0.06);
    color: #27456f;
    font-size: 0.84rem;
    font-weight: 650;
}

.home-feature-actions {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.home-feature-helper {
    margin: 0;
    max-width: 38ch;
    color: var(--text-subtle);
    font-size: 0.9rem;
    line-height: 1.55;
}

#catalog-error {
    margin-top: 14px;
}

.home-library {
    margin-top: 34px;
}

.home-library-header {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
    gap: 18px;
    align-items: end;
}

.home-library-summary {
    padding: 18px 20px;
    border-radius: 18px;
    box-shadow: 0 10px 22px rgba(15, 26, 46, 0.06);
}

.home-library-summary-label {
    margin: 0 0 8px;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #45658f;
}

.home-library-summary-text {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.65;
}

.home-controls {
    margin-top: 22px;
    padding: 22px;
    border-radius: 22px;
}

.home-controls-row {
    display: flex;
    align-items: end;
    gap: 14px;
}

.home-search-group {
    flex: 1;
}

.home-clear-button {
    min-width: 150px;
    min-height: 46px;
}

.home-chip-block {
    margin-top: 18px;
    display: grid;
    gap: 12px;
}

.home-chip-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.home-results-count {
    margin: 0;
    color: var(--text-subtle);
    font-size: 0.9rem;
    font-weight: 600;
}

.home-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.home-chip {
    border: 1px solid rgba(188, 200, 218, 0.86);
    background: rgba(255, 255, 255, 0.9);
    color: #2e496f;
    border-radius: 999px;
    min-height: 40px;
    padding: 0 15px;
    font-size: 0.92rem;
    font-weight: 650;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.home-chip:hover,
.home-chip:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(31, 111, 235, 0.45);
    box-shadow: 0 10px 20px rgba(31, 111, 235, 0.12);
    outline: none;
}

.home-chip[aria-pressed="true"] {
    color: #ffffff;
    border-color: rgba(31, 111, 235, 0.95);
    background: linear-gradient(135deg, #2a79f5, #245fd8);
    box-shadow: 0 12px 24px rgba(33, 97, 214, 0.24);
}

.home-gallery {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.home-video-card {
    width: 100%;
    padding: 0;
    border: 1px solid rgba(188, 200, 218, 0.9);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    color: inherit;
    cursor: pointer;
    text-align: left;
    overflow: hidden;
    box-shadow: 0 16px 32px rgba(15, 26, 46, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.home-video-card:hover,
.home-video-card:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(31, 111, 235, 0.4);
    box-shadow: 0 20px 44px rgba(15, 26, 46, 0.12);
    outline: none;
}

.home-video-card.is-active {
    border-color: rgba(31, 111, 235, 0.82);
    box-shadow: 0 22px 50px rgba(31, 111, 235, 0.16);
}

.home-card-media {
    aspect-ratio: 16 / 10;
    position: relative;
    overflow: hidden;
    color: #eff6ff;
    background:
        radial-gradient(circle at top left, rgba(70, 180, 255, 0.45), rgba(70, 180, 255, 0) 42%),
        linear-gradient(135deg, #10213c 0%, #16335c 58%, #12294a 100%);
}

.home-card-media.is-ready {
    background:
        radial-gradient(circle at top left, rgba(255, 183, 72, 0.35), rgba(255, 183, 72, 0) 40%),
        linear-gradient(135deg, #163152 0%, #1d4673 58%, #17355d 100%);
}

.home-card-thumbnail {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-card-media-overlay {
    position: relative;
    z-index: 1;
    height: 100%;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    background:
        linear-gradient(180deg, rgba(8, 20, 37, 0.18) 0%, rgba(8, 20, 37, 0.56) 72%, rgba(8, 20, 37, 0.82) 100%);
}

.home-card-media:not(.is-ready) .home-card-media-overlay,
.home-card-media.is-thumbnail-fallback .home-card-media-overlay {
    background: none;
}

.home-card-media-top {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.home-card-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.08);
}

.home-card-media-copy {
    display: grid;
    gap: 6px;
}

.home-card-media-label {
    font-size: 0.8rem;
    color: rgba(239, 246, 255, 0.72);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.home-card-media-title {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.35;
}

.home-card-body {
    padding: 18px;
    display: grid;
    gap: 14px;
}

.home-card-title {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.35;
}

.home-card-summary {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.65;
}

.home-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.home-card-current {
    color: #1f6feb;
    font-size: 0.82rem;
    font-weight: 700;
}

.home-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.home-card-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(16, 33, 60, 0.06);
    color: #34527c;
    font-size: 0.8rem;
    font-weight: 650;
}

.home-empty-state {
    margin-top: 20px;
    padding: 28px;
    text-align: center;
}

.home-empty-state h3 {
    margin: 0 0 10px;
    font-size: 1.15rem;
}

@media (max-width: 1120px) {
    .home-library-header {
        grid-template-columns: 1fr;
    }

    .home-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .home-proof-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 780px) {
    .home-page .page-main {
        padding-top: 16px;
    }

    .home-hero {
        padding-top: 20px;
    }

    .home-controls-row,
    .home-feature-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .home-chip-label-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .home-clear-button {
        width: 100%;
    }

    .home-chip-row {
        flex-wrap: wrap;
        overflow: visible;
        padding-bottom: 0;
    }

    .home-gallery {
        grid-template-columns: 1fr;
    }

    .home-feature-panel,
    .home-controls {
        padding: 18px;
    }
}
