.cecm-wrap,
.cecm-wrap * {
    box-sizing: border-box;
}

.cecm-wrap {
    --cecm-border: #e8ecf2;
    --cecm-muted: #657085;
    --cecm-bg: #ffffff;
    --cecm-soft: #f6f8fb;
    font-family: inherit;
    width: 100%;
}

.cecm-schedule-grid,
.cecm-crew-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.cecm-event-card,
.cecm-crew-card,
.cecm-single-box,
.cecm-registration-wrap,
.cecm-calendar-wrap,
.cecm-empty {
    background: var(--cecm-bg);
    border: 1px solid var(--cecm-border);
    border-radius: 18px;
    box-shadow: 0 14px 36px rgba(10, 22, 50, 0.08);
}

.cecm-event-card {
    overflow: hidden;
    position: relative;
}

.cecm-event-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--cecm-soft);
}

.cecm-event-thumb img,
.cecm-crew-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.cecm-event-card:hover .cecm-event-thumb img,
.cecm-crew-card:hover .cecm-crew-logo img {
    transform: scale(1.04);
}

.cecm-event-card-body {
    display: flex;
    gap: 16px;
    padding: 20px;
}

.cecm-event-date-badge {
    flex: 0 0 64px;
    width: 64px;
    height: 74px;
    border-radius: 16px;
    overflow: hidden;
    text-align: center;
    border: 1px solid var(--cecm-border);
    background: var(--cecm-soft);
}

.cecm-event-date-badge span {
    display: block;
    background: var(--cecm-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.05em;
    padding: 6px 4px;
    text-transform: uppercase;
}

.cecm-event-date-badge strong {
    display: block;
    color: var(--cecm-secondary);
    font-size: 28px;
    line-height: 42px;
}

.cecm-event-main {
    min-width: 0;
    flex: 1;
}

.cecm-event-main h3,
.cecm-crew-card h3 {
    margin: 0 0 10px;
    font-size: clamp(20px, 2vw, 25px);
    line-height: 1.2;
}

.cecm-event-main h3 a,
.cecm-crew-card h3 a,
.cecm-calendar-event-pill a {
    color: var(--cecm-secondary);
    text-decoration: none;
}

.cecm-event-main h3 a:hover,
.cecm-crew-card h3 a:hover,
.cecm-calendar-event-pill a:hover {
    color: var(--cecm-primary);
}

.cecm-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 12px;
}

.cecm-event-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 9px;
    border-radius: 999px;
    background: var(--cecm-soft);
    color: var(--cecm-muted);
    font-size: 13px;
    line-height: 1.2;
}

.cecm-event-main p,
.cecm-crew-card p {
    color: var(--cecm-muted);
    margin: 0 0 16px;
    line-height: 1.6;
}

.cecm-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.cecm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 14px;
    text-decoration: none !important;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.22s ease;
    line-height: 1;
}

.cecm-btn-primary {
    background: var(--cecm-primary);
    color: #fff !important;
    border-color: var(--cecm-primary);
    box-shadow: 0 10px 22px rgba(4, 123, 235, 0.25);
}

.cecm-btn-primary:hover {
    background: var(--cecm-accent);
    border-color: var(--cecm-accent);
    color: #fff !important;
    transform: translateY(-2px);
}

.cecm-btn-outline {
    background: #fff;
    color: var(--cecm-secondary) !important;
    border-color: var(--cecm-border);
}

.cecm-btn-outline:hover {
    border-color: var(--cecm-primary);
    color: var(--cecm-primary) !important;
    transform: translateY(-2px);
}

.cecm-calendar-wrap {
    padding: 22px;
    overflow: hidden;
}

.cecm-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.cecm-calendar-header h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 36px);
    color: var(--cecm-secondary);
    text-align: center;
}

.cecm-calendar-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--cecm-border);
    border-radius: 999px;
    padding: 10px 14px;
    color: var(--cecm-secondary);
    text-decoration: none !important;
    font-weight: 800;
    background: #fff;
}

.cecm-calendar-nav:hover {
    color: #fff;
    background: var(--cecm-primary);
    border-color: var(--cecm-primary);
}

.cecm-calendar-table-wrap {
    overflow-x: auto;
}

.cecm-calendar-table {
    width: 100%;
    min-width: 780px;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--cecm-border);
    border-radius: 16px;
    overflow: hidden;
}

.cecm-calendar-table th {
    background: var(--cecm-secondary);
    color: #fff;
    padding: 14px 10px;
    text-align: center;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.cecm-calendar-table td {
    vertical-align: top;
    width: 14.285%;
    min-height: 120px;
    height: 132px;
    border-right: 1px solid var(--cecm-border);
    border-bottom: 1px solid var(--cecm-border);
    background: #fff;
    padding: 9px;
}

.cecm-calendar-table td:last-child,
.cecm-calendar-table th:last-child {
    border-right: 0;
}

.cecm-calendar-table tr:last-child td {
    border-bottom: 0;
}

.cecm-calendar-empty-cell {
    background: #fbfcfe !important;
}

.cecm-calendar-cell.is-today {
    background: rgba(4, 123, 235, 0.06);
    box-shadow: inset 0 0 0 2px rgba(4, 123, 235, 0.15);
}

.cecm-calendar-day-number {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 900;
    color: var(--cecm-secondary);
    margin-bottom: 8px;
}

.cecm-calendar-cell.is-today .cecm-calendar-day-number {
    background: var(--cecm-primary);
    color: #fff;
}

.cecm-calendar-events {
    display: grid;
    gap: 7px;
}

.cecm-calendar-event-pill {
    background: var(--cecm-soft);
    border-left: 4px solid var(--cecm-primary);
    border-radius: 10px;
    padding: 8px;
    font-size: 12px;
    line-height: 1.35;
}

.cecm-calendar-event-pill a:first-child {
    display: block;
    font-weight: 800;
}

.cecm-calendar-event-pill small {
    display: block;
    color: var(--cecm-muted);
    margin-top: 3px;
}

.cecm-mini-scoreholio {
    display: inline-block !important;
    margin-top: 6px;
    color: var(--cecm-primary) !important;
    font-size: 11px;
    font-weight: 900;
}

.cecm-crew-card {
    padding: 22px;
    text-align: center;
}

.cecm-crew-logo {
    display: block;
    width: 112px;
    height: 112px;
    margin: 0 auto 16px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--cecm-soft);
    border: 4px solid #fff;
    box-shadow: 0 10px 30px rgba(10, 22, 50, 0.12);
}

.cecm-crew-location,
.cecm-crew-captain {
    margin-bottom: 8px !important;
}

.cecm-registration-wrap,
.cecm-single-box,
.cecm-empty {
    padding: 24px;
}

.cecm-single-box {
    margin: 24px 0;
}

.cecm-single-box h3 {
    margin: 0 0 16px;
    color: var(--cecm-secondary);
    font-size: clamp(22px, 2.4vw, 30px);
}

.cecm-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.cecm-info-grid > div {
    padding: 16px;
    border: 1px solid var(--cecm-border);
    border-radius: 14px;
    background: var(--cecm-soft);
}

.cecm-info-grid strong {
    display: block;
    color: var(--cecm-secondary);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 5px;
}

.cecm-info-grid span {
    color: var(--cecm-muted);
}

.cecm-single-action {
    margin-top: 18px;
}

.cecm-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.cecm-form-grid label span:first-child,
.cecm-member-form label > span:first-child {
    display: block;
    margin-bottom: 7px;
    color: var(--cecm-secondary);
    font-weight: 800;
}

.cecm-member-form input[type="text"],
.cecm-member-form input[type="email"],
.cecm-member-form input[type="tel"],
.cecm-member-form select,
.cecm-member-form textarea {
    width: 100%;
    border: 1px solid var(--cecm-border);
    border-radius: 14px;
    padding: 13px 14px;
    background: #fff;
    min-height: 48px;
    outline: none;
    color: var(--cecm-secondary);
}

.cecm-member-form input:focus,
.cecm-member-form select:focus,
.cecm-member-form textarea:focus {
    border-color: var(--cecm-primary);
    box-shadow: 0 0 0 3px rgba(4, 123, 235, 0.12);
}

.cecm-form-full {
    grid-column: 1 / -1;
}

.cecm-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--cecm-muted);
}

.cecm-checkbox-label input {
    margin-top: 4px;
}

.cecm-member-form button[type="submit"] {
    margin-top: 18px;
}

.cecm-alert {
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 18px;
    font-weight: 700;
}

.cecm-alert-success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.cecm-alert-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.cecm-members-list {
    display: grid;
    gap: 10px;
}

.cecm-member-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--cecm-border);
    border-radius: 14px;
    background: #fff;
}

.cecm-member-row span {
    color: var(--cecm-muted);
}

.cecm-empty {
    color: var(--cecm-muted);
    text-align: center;
}

@media (max-width: 1024px) {
    .cecm-schedule-grid,
    .cecm-crew-grid,
    .cecm-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .cecm-schedule-grid,
    .cecm-crew-grid,
    .cecm-info-grid,
    .cecm-form-grid {
        grid-template-columns: 1fr;
    }

    .cecm-event-card-body {
        flex-direction: column;
    }

    .cecm-calendar-header {
        flex-direction: column;
    }

    .cecm-calendar-nav {
        width: 100%;
    }

    .cecm-card-actions,
    .cecm-btn {
        width: 100%;
    }

    .cecm-member-row {
        align-items: flex-start;
        flex-direction: column;
    }
}


.cecm-single-event-wrap {
    display: grid;
    gap: 24px;
}

.cecm-single-event-hero {
    display: grid;
    grid-template-columns: minmax(280px, 1.05fr) minmax(320px, 1fr);
    gap: 26px;
    align-items: stretch;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f7f7f7 100%);
}

.cecm-single-event-media {
    position: relative;
    min-height: 320px;
    border-radius: 18px;
    overflow: hidden;
    background: #111;
}

.cecm-single-event-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cecm-single-event-placeholder {
    min-height: 320px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #000 0%, #1c1c1c 100%);
    color: #fff;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 900;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.cecm-status-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--cecm-accent);
    color: #fff;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(235, 74, 49, 0.28);
}

.cecm-single-event-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}

.cecm-single-event-kicker {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cecm-single-event-kicker span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(235, 74, 49, 0.1);
    color: var(--cecm-accent);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cecm-single-event-title {
    margin: 0;
    color: var(--cecm-secondary);
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.1;
}

.cecm-single-event-summary {
    margin: 0;
    color: var(--cecm-muted);
    font-size: 16px;
    line-height: 1.75;
}

.cecm-single-event-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cecm-single-event-highlights span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--cecm-border);
    color: var(--cecm-secondary);
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(10, 22, 50, 0.05);
}

.cecm-single-event-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 6px;
}

.cecm-single-event-panels {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 24px;
    align-items: start;
}

.cecm-single-panel-side {
    background: linear-gradient(135deg, #111 0%, #1e1e1e 100%);
    color: #fff;
}

.cecm-single-panel-side h3,
.cecm-single-panel-side strong,
.cecm-single-panel-side a {
    color: #fff;
}

.cecm-single-panel-side p {
    margin: 0 0 16px;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.7;
}

.cecm-single-panel-side .cecm-btn-outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.22);
    color: #fff !important;
}

.cecm-single-panel-side .cecm-btn-outline:hover {
    border-color: var(--cecm-accent);
    background: var(--cecm-accent);
    color: #fff !important;
}

.cecm-side-meta {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.cecm-side-meta strong {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.cecm-side-meta a {
    text-decoration: none;
    font-weight: 700;
}

@media (max-width: 1024px) {
    .cecm-single-event-hero,
    .cecm-single-event-panels {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .cecm-single-event-actions .cecm-btn {
        width: 100%;
    }

    .cecm-single-event-media,
    .cecm-single-event-placeholder {
        min-height: 240px;
    }
}


.cecm-archive-shell {
    padding: 28px 0 10px;
}

.cecm-archive-hero {
    position: relative;
    overflow: hidden;
    padding: 34px;
    border-radius: 24px;
    background: linear-gradient(135deg, #000000 0%, #171717 58%, #232323 100%);
    color: #fff;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
}

.cecm-archive-hero::after {
    content: '';
    position: absolute;
    inset: auto -60px -80px auto;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(235, 74, 49, 0.28) 0%, rgba(235, 74, 49, 0) 70%);
    pointer-events: none;
}

.cecm-archive-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.9fr);
    gap: 24px;
    align-items: end;
}

.cecm-archive-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(235, 74, 49, 0.14);
    color: #ffb4a8;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cecm-archive-hero h1 {
    margin: 14px 0 10px;
    color: #fff;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.05;
}

.cecm-archive-hero p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.8;
    font-size: 16px;
    max-width: 780px;
}

.cecm-archive-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.cecm-archive-stat {
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
}

.cecm-archive-stat strong {
    display: block;
    margin-bottom: 6px;
    color: #fff;
    font-size: 30px;
    line-height: 1;
}

.cecm-archive-stat span {
    color: rgba(255, 255, 255, 0.74);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
}

.cecm-archive-section {
    margin-top: 26px;
}

.cecm-archive-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 14px;
}

.cecm-archive-section-title h2 {
    margin: 0;
    color: var(--cecm-secondary);
    font-size: clamp(24px, 3vw, 36px);
}

.cecm-archive-section-title p {
    margin: 0;
    color: var(--cecm-muted);
}

.cecm-archive-panel {
    padding: 22px;
}

.cecm-archive-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

@media (max-width: 900px) {
    .cecm-archive-hero-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .cecm-archive-hero {
        padding: 24px;
        border-radius: 20px;
    }

    .cecm-archive-stats {
        grid-template-columns: 1fr;
    }

    .cecm-archive-actions .cecm-btn {
        width: 100%;
    }
}
