:root {
    --yc-bg: #faf8f5;
    --yc-surface: #ffffff;
    --yc-accent: #c45c4a;
    --yc-accent-soft: #f3e8e6;
    --yc-text: #1a1a1a;
    --yc-muted: #6b6560;
    --yc-radius: 1.25rem;
    --yc-font: "DM Sans", system-ui, sans-serif;
    --yc-display: "Outfit", system-ui, sans-serif;
}

html {
    min-height: 100%;
    background: linear-gradient(165deg, var(--yc-bg) 0%, #f0ebe3 100%);
    background-color: var(--yc-bg);
}

body.yc-app {
    font-family: var(--yc-font);
    background: transparent;
    color: var(--yc-text);
    display: flex;
    flex-direction: column;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
}

body.yc-app > header,
body.yc-app > footer {
    flex-shrink: 0;
}

body.yc-app > main.yc-main {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Модалки переносятся в body (yc-modals.js); при открытии main не скроллится */
body.modal-open .yc-main {
    overflow: hidden;
}

body.modal-open .modal {
    pointer-events: auto;
}

.modal-backdrop {
    z-index: 1050;
}

.modal {
    z-index: 1055;
}

.yc-brand {
    font-family: var(--yc-display);
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--yc-accent);
    letter-spacing: -0.02em;
}

.yc-brand-link {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    flex-shrink: 0;
}

.yc-brand-logo {
    display: block;
    height: 2rem;
    width: auto;
}

.yc-header, .yc-footer {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
}

.yc-header-icon-btn.btn {
    --bs-btn-padding-x: 0;
    --bs-btn-padding-y: 0;
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
    min-height: 2rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    flex-shrink: 0;
}

.yc-header-icon-btn .bi {
    font-size: 1rem;
    line-height: 1;
    display: block;
    margin: 0;
}

.yc-footer-bottom {
    flex-wrap: nowrap;
}

.yc-footer-copy {
    min-width: 0;
    flex: 0 1 auto;
    color: var(--yc-muted);
}

.yc-footer-copy .yc-brand {
    font-size: 1em;
    font-weight: 600;
}

.yc-footer-dev {
    min-width: 0;
    flex: 0 1 auto;
}

.yc-footer-dev-label {
    color: var(--yc-muted);
}

.yc-footer-icon-link {
    color: var(--yc-muted);
    opacity: 0.9;
    font-size: 1.1rem;
    line-height: 1;
    padding: 0.2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: opacity 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.yc-footer-icon-link:hover {
    opacity: 1;
    color: var(--yc-accent);
    background: var(--yc-accent-soft);
}

@media (max-width: 575.98px) {
    .yc-footer-bottom {
        gap: 0.35rem !important;
    }

    .yc-footer-copy {
        font-size: clamp(0.68rem, 2.85vw, 0.8125rem);
    }

    .yc-footer-dev,
    .yc-footer-dev-label {
        font-size: clamp(0.6rem, 2.35vw, 0.75rem);
    }

    .yc-footer-icon-link {
        font-size: 1rem;
        padding: 0.12rem;
    }
}

/* Главная: фоновое изображение + градиент, контент поверх */
body.yc-page-home {
    --yc-header-h: 3.25rem;
    --yc-footer-h: 3rem;
}

body.yc-page-home > header.yc-header,
body.yc-page-home > footer.yc-footer {
    position: relative;
    z-index: 2;
}

body.yc-page-home > main.yc-main {
    position: relative;
    z-index: 1;
    background: transparent;
}

.yc-home-parallax {
    position: relative;
}

.yc-home-parallax-bg {
    position: fixed;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background-color: var(--yc-bg);
}

.yc-home-parallax-bg-photo {
    position: absolute;
    inset: 0;
    background-image: url('/img/background.webp');
    background-repeat: repeat-y;
    background-size: 100% auto;
    background-position: center 0;
    will-change: background-position;
}

.yc-home-parallax-bg-scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(
            165deg,
            rgba(250, 248, 245, 0.48) 0%,
            rgba(240, 235, 227, 0.32) 50%,
            rgba(250, 248, 245, 0.55) 100%);
}

.yc-home-parallax-content {
    position: relative;
    z-index: 1;
}

.yc-hero {
    max-width: 36rem;
}

.yc-hero h1 {
    font-family: var(--yc-display);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

/* Главная: hero и фильтры читаемы на ярком фоне */
body.yc-page-home .yc-hero h1 {
    color: #14110f;
    text-shadow:
        0 0 24px rgba(255, 255, 255, 0.95),
        0 1px 2px rgba(255, 255, 255, 0.9),
        0 2px 18px rgba(255, 252, 248, 0.75);
}

body.yc-page-home .yc-hero .lead {
    color: #2a241f;
    font-weight: 500;
    text-shadow:
        0 0 18px rgba(255, 255, 255, 0.9),
        0 1px 14px rgba(255, 252, 248, 0.65);
}

body.yc-page-home .yc-home-filter-btn {
    border-width: 1px;
    border-color: rgba(255, 255, 255, 0.82);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(252, 249, 245, 0.9) 100%);
    color: #1f1b18;
    min-width: 0;
    min-height: clamp(2rem, 5.5vw, 2.5rem);
    padding: clamp(0.3rem, 1.1vw, 0.5rem) clamp(0.45rem, 2.2vw, 1.15rem);
    font-size: clamp(0.7rem, 2.35vw, 0.9375rem);
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow:
        0 6px 18px rgba(26, 26, 26, 0.12),
        0 1px 0 rgba(255, 255, 255, 0.75) inset;
    -webkit-backdrop-filter: blur(8px) saturate(1.08);
    backdrop-filter: blur(8px) saturate(1.08);
}

body.yc-page-home .yc-home-filter-btn.btn-outline-secondary:hover {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(255, 252, 248, 0.96) 100%);
    border-color: rgba(255, 255, 255, 0.95);
    color: #14110f;
}

body.yc-page-home .yc-home-filter-btn.btn-primary {
    border-color: rgba(196, 92, 74, 0.55);
    background: linear-gradient(180deg, #d46858 0%, var(--yc-accent) 100%);
    color: #fff;
    box-shadow:
        0 8px 22px rgba(196, 92, 74, 0.35),
        0 1px 0 rgba(255, 255, 255, 0.25) inset;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.12);
}

/* Главная: плавное появление блоков при загрузке и при прокрутке */
html.yc-js .yc-home-reveal-root .yc-reveal {
    opacity: 0;
    transform: translate3d(0, 1.8rem, 0);
    transition:
        opacity 1.05s cubic-bezier(0.22, 1, 0.36, 1),
        transform 1.05s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--yc-reveal-delay, 0s);
}

html.yc-js .yc-home-reveal-root .yc-reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
    .yc-home-parallax-bg-photo {
        background-position: center 0;
        will-change: auto;
    }

    html.yc-js .yc-home-reveal-root .yc-reveal {
        opacity: 1;
        transform: none;
        transition: none;
        transition-delay: 0s;
    }
}

.yc-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(251, 248, 244, 0.84) 100%);
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: var(--yc-radius);
    box-shadow:
        0 12px 30px rgba(26, 26, 26, 0.09),
        0 1px 0 rgba(255, 255, 255, 0.55) inset;
    -webkit-backdrop-filter: blur(7px) saturate(1.05);
    backdrop-filter: blur(7px) saturate(1.05);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.yc-home-event-card:hover {
    box-shadow:
        0 16px 36px rgba(26, 26, 26, 0.12),
        0 1px 0 rgba(255, 255, 255, 0.62) inset;
    transform: translateY(-1px);
}

.yc-home-event-card {
    overflow: visible;
}

.yc-home-feed-col {
    max-width: 56rem;
}

.yc-home-filter-col {
    margin-left: auto;
    margin-right: auto;
}

.yc-home-filter {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(0.35rem, 1.4vw, 0.5rem);
    width: 100%;
    max-width: 100%;
}

.yc-home-filter-btn {
    width: 100%;
}

@media (min-width: 1400px) {
    .yc-home-feed-col {
        max-width: 52rem;
    }
}

.yc-home-event-status {
    position: absolute;
    top: -0.42rem;
    left: -0.42rem;
    z-index: 3;
    padding: 0.4rem 0.78rem;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.58);
    box-shadow:
        0 8px 18px rgba(20, 26, 36, 0.14),
        0 1px 0 rgba(255, 255, 255, 0.52) inset;
    -webkit-backdrop-filter: blur(6px) saturate(1.06);
    backdrop-filter: blur(6px) saturate(1.06);
}

.yc-home-event-status.yc-event-status-open {
    background:
        linear-gradient(180deg, rgba(195, 233, 209, 0.94) 0%, rgba(156, 208, 178, 0.92) 100%);
    color: #153426;
}

.yc-home-event-status.yc-event-status-closed {
    background:
        linear-gradient(180deg, rgba(236, 240, 246, 0.94) 0%, rgba(204, 212, 224, 0.92) 100%);
    color: #303843;
}

.yc-home-event-status.yc-event-status-matches {
    background:
        linear-gradient(180deg, rgba(207, 226, 255, 0.96) 0%, rgba(159, 197, 248, 0.94) 100%);
    color: #142a4a;
}

.yc-home-event-status.yc-event-status-matches-closed {
    background:
        linear-gradient(180deg, rgba(224, 231, 255, 0.96) 0%, rgba(186, 200, 235, 0.94) 100%);
    color: #2a3350;
}

.yc-home-event-status.yc-event-status-completed {
    background:
        linear-gradient(180deg, rgba(220, 220, 228, 0.96) 0%, rgba(176, 178, 192, 0.94) 100%);
    color: #1f2230;
}

.yc-home-event-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
}

.yc-home-event-notify-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.yc-home-event-notify-col .yc-btn-notify {
    width: 100%;
}

@media (min-width: 576px) {
    .yc-home-event-actions {
        flex-direction: row;
        align-items: flex-start;
    }

    .yc-home-event-actions > .btn,
    .yc-home-event-notify-col {
        flex: 1 1 0;
        min-width: 0;
    }
}

.yc-btn-notify {
    --bs-btn-color: #7a4a42;
    --bs-btn-bg: rgba(196, 92, 74, 0.14);
    --bs-btn-border-color: rgba(196, 92, 74, 0.32);
    --bs-btn-hover-color: #6b3f38;
    --bs-btn-hover-bg: rgba(196, 92, 74, 0.22);
    --bs-btn-hover-border-color: rgba(196, 92, 74, 0.42);
    --bs-btn-active-color: #6b3f38;
    --bs-btn-active-bg: rgba(196, 92, 74, 0.26);
    --bs-btn-active-border-color: rgba(196, 92, 74, 0.48);
    font-weight: 500;
}

.yc-card-accent {
    background: var(--yc-accent-soft);
    border-radius: var(--yc-radius);
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--yc-accent);
    --bs-btn-border-color: var(--yc-accent);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #a84d3d;
    --bs-btn-hover-border-color: #a84d3d;
    --bs-btn-focus-shadow-rgb: 196, 92, 74;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #963f32;
    --bs-btn-active-border-color: #963f32;
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--yc-accent);
    --bs-btn-disabled-border-color: var(--yc-accent);
}

#registerModal #regSubmitBtn.btn-primary {
    background-color: var(--yc-accent);
    border-color: var(--yc-accent);
    color: #fff;
}

#registerModal #regSubmitBtn.btn-primary:hover:not(:disabled) {
    background-color: #a84d3d;
    border-color: #a84d3d;
    color: #fff;
}

#registerModal #regSubmitBtn.btn-primary:disabled {
    background-color: var(--yc-accent);
    border-color: var(--yc-accent);
    color: #fff;
    opacity: 0.65;
}

.form-control:focus, .form-select:focus {
    border-color: var(--yc-accent);
    box-shadow: 0 0 0 0.2rem rgba(196, 92, 74, 0.2);
}

.yc-match-chip {
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.yc-match-chip:has(input:checked) {
    border-color: var(--yc-accent) !important;
    background: var(--yc-accent-soft);
    box-shadow: 0 0 0 2px rgba(196, 92, 74, 0.25);
}

.yc-match-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.nav-pills .nav-link {
    color: var(--yc-muted);
}

.nav-pills .nav-link.active {
    background: var(--yc-accent);
}

@media (max-width: 575.98px) {
    .yc-hero h1 {
        font-size: 1.75rem;
        margin-bottom: 0.625rem;
    }

    .yc-hero .lead {
        font-size: 1rem;
        line-height: 1.45;
    }
}

.yc-pre-wrap {
    white-space: pre-wrap;
}

#ycToastContainer .toast {
    min-width: 280px;
    max-width: min(420px, calc(100vw - 2rem));
}

#ycToastContainer .toast-body code {
    word-break: break-all;
}

.yc-modal-compact {
    max-width: 32rem;
}

.yc-modal-compact .form-label-sm {
    font-size: 0.8125rem;
    margin-bottom: 0.15rem;
}

.yc-create-event-modal .modal-header {
    padding-top: 0.65rem;
    padding-bottom: 0;
}

.yc-create-event-modal .modal-body {
    padding-top: 0.25rem;
    padding-bottom: 0.35rem;
}

.yc-create-event-modal .modal-footer {
    padding-top: 0;
    padding-bottom: 0.5rem;
}

.yc-create-event-modal .yc-create-event-field {
    margin-bottom: 0.45rem;
}

.yc-create-event-modal .yc-create-event-field.mb-0 {
    margin-bottom: 0;
}

.yc-create-event-modal .yc-create-event-textarea {
    min-height: 2.75rem;
    resize: vertical;
}

.yc-create-event-modal .form-control-sm {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.yc-create-event-modal .field-validation-error,
.yc-create-event-modal .text-danger.small {
    line-height: 1.2;
}

.yc-label-required::after {
    content: " *";
    color: var(--bs-danger);
    font-weight: 600;
}

.yc-password-field .yc-password-toggle {
    position: absolute;
    top: 50%;
    right: 0.5rem;
    transform: translateY(-50%);
    line-height: 1;
    color: var(--bs-secondary-color);
    text-decoration: none;
}

.yc-password-field .yc-password-toggle:hover,
.yc-password-field .yc-password-toggle:focus-visible {
    color: var(--yc-accent);
}

.modal-dialog-scrollable .modal-content > form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    width: 100%;
}

.modal-dialog-scrollable .modal-content > .modal-body,
.modal-dialog-scrollable .modal-content > form > .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

.modal-dialog-scrollable .modal-content > .modal-header,
.modal-dialog-scrollable .modal-content > form > .modal-footer,
.modal-dialog-scrollable .modal-content > .modal-footer {
    flex-shrink: 0;
}

#cabinetLoginModal .form-text {
    font-size: 0.75rem;
    margin-top: 0.15rem;
}

#registerModal .collapse.mt-2 {
    margin-top: 0.35rem !important;
}

#registerModal .yc-card.p-3 {
    padding: 0.65rem !important;
}

#registerModal .yc-event-map.mt-3 {
    margin-top: 0.5rem !important;
}

/* —— Admin event details (compact) —— */
.yc-admin-event .yc-admin-stats-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(0.35rem, 1.5vw, 0.5rem);
    margin-bottom: 0;
    width: 100%;
}

.yc-admin-event .yc-stat-card {
    min-width: 0;
    padding: clamp(0.35rem, 1.2vw, 0.5rem) clamp(0.15rem, 0.6vw, 0.35rem);
}

.yc-admin-event .yc-stat-value {
    font-size: clamp(0.9rem, 3.8vw, 1.35rem);
    font-weight: 600;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
}

.yc-admin-event .yc-stat-label {
    font-size: clamp(0.5625rem, 2.1vw, 0.75rem);
    line-height: 1.2;
    color: var(--yc-muted);
    margin-top: 0.1rem;
}

.yc-admin-event .yc-admin-section-title {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--yc-muted);
    margin-bottom: 0.35rem;
}

.yc-admin-event .yc-admin-tabs .nav-link {
    font-size: 0.8125rem;
}

.yc-admin-event .yc-admin-table {
    font-size: 0.8125rem;
}

.yc-admin-event .yc-admin-table th,
.yc-admin-event .yc-admin-table td {
    padding: 0.35rem 0.5rem;
}

.yc-inline-notice {
    font-size: 0.8125rem;
    padding: 0.35rem 0.65rem;
    border-radius: 0.5rem;
    border: 1px solid transparent;
}

.yc-inline-notice-warning {
    background: #fff8e6;
    border-color: #f0e0b0;
    color: #6b5a2e;
}

.yc-inline-notice-success {
    background: #edf7ee;
    border-color: #c8e6c9;
    color: #2e5c32;
}

/* Phase timeline */
.yc-phase-timeline-wrap {
    width: 100%;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.yc-phase-timeline {
    display: flex;
    align-items: stretch;
    width: 100%;
    gap: 0;
    overflow: hidden;
}

.yc-phase-step {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
}

.yc-phase-step-form {
    margin: 0;
    flex: 1 1 auto;
    display: flex;
    min-width: 0;
    width: 100%;
}

.yc-phase-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    flex: 1 1 auto;
    width: 100%;
    min-height: 100%;
    padding: 0.35rem 0.2rem;
    border: 1px solid rgba(26, 26, 26, 0.14);
    background: transparent;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.yc-phase-btn:hover {
    background: rgba(196, 92, 74, 0.08);
    border-color: rgba(196, 92, 74, 0.35);
}

.yc-phase-btn.active {
    background: var(--yc-accent-soft);
    border-color: var(--yc-accent);
}

.yc-phase-dot {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    border: 2px solid #ccc;
    background: #fff;
    flex-shrink: 0;
}

.yc-phase-step.done .yc-phase-dot {
    border-color: var(--yc-accent);
    background: var(--yc-accent);
}

.yc-phase-step.current .yc-phase-dot {
    border-color: var(--yc-accent);
    background: #fff;
    box-shadow: 0 0 0 3px var(--yc-accent-soft);
}

.yc-phase-step.upcoming .yc-phase-dot {
    border-color: #ddd;
    background: #f5f5f5;
}

.yc-phase-label {
    flex: 0 0 auto;
    width: 100%;
    height: 2.4em;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(0.5625rem, 1.05vw, 0.75rem);
    color: var(--yc-muted);
}

.yc-phase-label-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.2;
    text-align: center;
    max-width: 100%;
    hyphens: none;
    word-break: normal;
    overflow-wrap: break-word;
}

.yc-phase-step.current .yc-phase-label {
    color: var(--yc-accent);
    font-weight: 600;
}

.yc-phase-btn.active .yc-phase-label {
    color: var(--yc-accent);
    font-weight: 600;
}

.yc-phase-connector {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    padding: 0 0.1rem;
    color: #c8c4be;
    font-size: clamp(0.85rem, 1.35vw, 1.05rem);
    line-height: 1;
}

.yc-phase-connector.done {
    color: var(--yc-accent);
}

@media (max-width: 767.98px) {
    .yc-phase-timeline {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto;
        align-items: stretch;
        row-gap: 0.35rem;
        column-gap: 0.1rem;
        overflow: visible;
    }

    .yc-phase-step {
        min-width: 0;
    }

    .yc-phase-btn {
        min-height: 4.25rem;
        padding: 0.4rem 0.25rem;
    }

    .yc-phase-label {
        height: auto;
        min-height: 2.6em;
        font-size: 0.7rem;
    }

    .yc-phase-connector {
        padding: 0;
        font-size: 0.95rem;
    }
}

/* —— Admin events list (cards) —— */
.yc-admin-events .yc-events-search {
    width: 100%;
}

.yc-admin-events .yc-events-search-field {
    position: relative;
    width: 100%;
}

.yc-admin-events .yc-events-search-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--yc-muted);
    font-size: 0.95rem;
    pointer-events: none;
    z-index: 2;
}

.yc-admin-events .yc-events-search-input {
    width: 100%;
    border-radius: 2rem;
    padding-left: 2.35rem;
    padding-right: 2.35rem;
    font-size: 0.9375rem;
}

.yc-admin-events .yc-events-search-clear {
    position: absolute;
    right: 0.35rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    border: none;
    background: transparent;
    color: var(--yc-muted);
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}

.yc-admin-events .yc-events-search-clear:hover {
    color: var(--yc-text);
    background: rgba(26, 26, 26, 0.06);
}

.yc-event-card {
    padding: 0.75rem 0.85rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    min-height: 100%;
    cursor: pointer;
}

@media (min-width: 576px) {
    .yc-event-card {
        padding: 0.85rem 1rem;
    }
}

.yc-event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(26, 26, 26, 0.1);
    color: var(--yc-text);
}

.yc-event-card-title {
    font-family: var(--yc-display);
    font-weight: 600;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.yc-event-card-meta,
.yc-event-card-venue {
    display: flex;
    align-items: baseline;
    gap: 0.15rem;
    line-height: 1.35;
    min-width: 0;
}

.yc-event-card-meta > i,
.yc-event-card-venue > i {
    flex-shrink: 0;
}

.yc-event-card-venue-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yc-event-card-footer {
    border-top: 1px solid rgba(26, 26, 26, 0.06);
}

.yc-event-card-counts {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    color: var(--yc-text);
    letter-spacing: 0.02em;
}

.yc-event-card-count-sep {
    margin: 0 0.2rem;
    color: var(--yc-muted);
    font-weight: 400;
}

.yc-event-address-trigger {
    display: inline;
    padding: 0;
    margin: 0;
    border: 0;
    background: none;
    font: inherit;
    color: inherit;
    text-align: left;
    text-decoration: underline;
    text-decoration-color: rgba(107, 101, 96, 0.45);
    text-underline-offset: 0.15em;
    cursor: pointer;
}

.yc-event-address-trigger:hover,
.yc-event-address-trigger:focus-visible {
    color: var(--yc-accent);
    text-decoration-color: var(--yc-accent);
}

.yc-event-map {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 11rem;
    border-radius: calc(var(--yc-radius) * 0.65);
    overflow: hidden;
    background: #ebe6df;
}

.yc-event-map.is-collapsed {
    display: none;
}

.yc-event-map-close {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
    padding: 0.35rem 0.5rem;
    border: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.92);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--yc-text, #3d3834);
    cursor: pointer;
}

.yc-event-map-close:hover,
.yc-event-map-close:focus-visible {
    background: #fff;
    color: var(--yc-accent);
}

.yc-event-map-body {
    flex: 1;
    min-height: 0;
    position: relative;
}

.yc-event-map iframe,
.yc-event-map .yc-event-map-host {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.yc-event-map .yc-event-map-host {
    min-height: 100%;
}

@media (min-width: 768px) {
    .yc-event-map {
        height: 12.5rem;
    }
}

.yc-modal-compact .yc-event-map {
    height: 7.5rem;
}

.yc-qr-card {
    padding: 0.75rem;
    border-radius: 0.75rem;
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
}

.yc-qr-hover {
    position: relative;
    display: inline-block;
}

.yc-qr-thumb-link {
    display: inline-block;
    line-height: 0;
}

.yc-qr-thumb {
    display: block;
    border-radius: 0.5rem;
    border: 1px solid var(--bs-border-color);
}

.yc-qr-popover {
    display: none;
    position: absolute;
    z-index: 20;
    left: 50%;
    bottom: calc(100% + 0.5rem);
    transform: translateX(-50%);
    padding: 0.35rem;
    background: #fff;
    border-radius: 0.75rem;
    border: 1px solid var(--bs-border-color);
    box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.12);
    pointer-events: none;
}

.yc-qr-popover img {
    display: block;
    border-radius: 0.5rem;
}

.yc-qr-hover:hover .yc-qr-popover,
.yc-qr-hover:focus-within .yc-qr-popover {
    display: block;
}

.yc-card-with-max-qr {
    padding-top: 1rem;
}

.yc-event-card-qr {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
    max-width: clamp(5.1rem, 21.8vw, 5.75rem);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.125rem;
}

.yc-event-card-qr-link {
    display: block;
    line-height: 0;
}

.yc-event-card-qr-img {
    display: block;
    width: clamp(4.9rem, 21vw, 5.5rem);
    height: clamp(4.9rem, 21vw, 5.5rem);
    border-radius: 0.5rem;
    border: 1px solid var(--bs-border-color);
    background: #fff;
}

.yc-event-card-qr-caption {
    margin: 0;
    font-size: 0.6875rem;
    line-height: 1.15;
    color: var(--bs-secondary-color);
}

.yc-event-card-qr-clear {
    padding-right: clamp(5.55rem, 24.5vw, 6.25rem);
}

.yc-event-ticket-line,
.yc-event-venue-line,
.yc-event-starts-line {
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    font-size: clamp(0.76rem, 2.18vw, 0.84rem);
    line-height: 1.22;
}

.yc-event-address-line {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    min-width: 0;
}

.yc-event-address-text {
    min-width: 0;
    max-width: 100%;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    font-size: clamp(0.76rem, 2.18vw, 0.84rem);
    line-height: 1.22;
}
