/* Index page specific styles */
.container {
    max-width: 1200px;
}

/* ========================================
   Program Listing (Homepage) Styles
   ======================================== */
.program-listing {
    padding: 30px;
}

.program-listing-title {
    text-align: center;
    font-size: 1.5em;
    color: #333;
    margin-bottom: 24px;
    font-weight: 700;
}

/* Horizontal list layout */
.program-cards {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Card: header top, body below */
.program-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.program-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px var(--sakura-dark-20);
}

/* Top gradient header: name top, dates below */
.program-card-header {
    background: var(--sakura-gradient);
    padding: 14px 20px;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.program-card-name {
    font-size: 1.1em;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.program-card-dates {
    font-size: 0.85em;
    opacity: 0.9;
}

/* Bottom body: content left, button right */
.program-card-body {
    padding: 16px 20px;
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

/* Middle content: badge + description + meta */
.program-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.program-card-description {
    height: 0;
    overflow: hidden;
    margin: 0;
}

.program-card-readmore {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78em;
    color: var(--sakura-dark);
    background: var(--sakura-bg, #FFF0F3);
    border: 1px solid var(--sakura-border, #FCE4EC);
    border-radius: 20px;
    padding: 5px 12px;
    min-height: 30px;
    cursor: pointer;
    font-weight: 600;
    line-height: 1;
    transition: background 0.15s, box-shadow 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.program-card-readmore:hover,
.program-card-readmore:active {
    background: var(--sakura-border, #FCE4EC);
    box-shadow: 0 2px 6px rgba(233, 30, 99, 0.15);
}

/* ====== Event Detail Modal ====== */
.event-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: eventModalFadeIn 0.15s ease;
}

@keyframes eventModalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.event-modal {
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    animation: eventModalSlideUp 0.2s ease;
}

@keyframes eventModalSlideUp {
    from { transform: translateY(16px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.event-modal-header {
    background: var(--sakura-gradient);
    padding: 18px 20px 14px;
    color: white;
    border-radius: 16px 16px 0 0;
    position: relative;
}

.event-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.25);
    color: white;
    cursor: pointer;
    font-size: 0.85em;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    line-height: 1;
}

.event-modal-close:hover {
    background: rgba(255, 255, 255, 0.4);
}

.event-modal-name {
    font-size: 1.15em;
    font-weight: 700;
    margin: 0 36px 6px 0;
    line-height: 1.3;
}

.event-modal-dates {
    font-size: 0.85em;
    opacity: 0.9;
    margin-bottom: 8px;
}

.event-modal-body {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.event-modal-description {
    color: #444;
    font-size: 0.93em;
    line-height: 1.7;
}

.event-modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.event-modal-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--sakura-gradient);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9em;
    transition: all 0.2s;
}

.event-modal-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--sakura-dark-40);
}

@media (max-width: 768px) {
    .event-modal-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .event-modal {
        max-height: 85vh;
        border-radius: 16px 16px 0 0;
    }
}

.program-card-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.78em;
    font-weight: 600;
    width: fit-content;
}

.program-card-badge.upcoming {
    background: var(--color-success-bg);
    color: var(--color-success-text);
}

.program-card-badge.ongoing {
    background: var(--color-warning-bg);
    color: var(--color-warning-text);
}

.program-card-badge.past {
    background: #F5F5F5;
    color: #757575;
}

/* Right action button */
.program-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: var(--sakura-gradient);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.88em;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
    align-self: center;
    min-width: 130px;
    justify-content: center;
}

.program-card-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--sakura-dark-40);
}

.program-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin: 0;
    padding: 0;
}

.program-card-meta-item {
    font-size: 0.82em;
    color: #777;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.program-card-meta-link {
    color: var(--sakura-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.program-card-meta-link:hover {
    color: var(--sakura-deep);
    text-decoration: underline;
}

.no-events-listing {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 24px 0 8px;
    flex-wrap: wrap;
}
.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 18px;
    font-size: 0.9em;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.pagination a {
    border: 2px solid var(--sakura-light, #FFB7C5);
    color: var(--sakura-deep, #C2185B);
    background: transparent;
}
.pagination a:hover {
    background: var(--sakura-light, #FFB7C5);
    color: #fff;
}
.pagination span.current {
    background: var(--sakura-dark, #E91E63);
    color: #fff;
    border: 2px solid var(--sakura-dark, #E91E63);
}
.pagination span.ellipsis {
    color: #9ca3af;
    border: none;
    min-width: auto;
    padding: 0 4px;
}

.past-events-btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 20px;
    border: 2px solid var(--sakura-light, #FFB7C5);
    color: var(--sakura-deep, #C2185B);
    background: transparent;
    font-size: 0.95em;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.past-events-btn:hover {
    background: var(--sakura-light, #FFB7C5);
    color: #fff;
}

/* Mobile: compact adjustments */
@media (max-width: 768px) {
    .program-selector select {
        width: 100%;
        min-width: 0;
    }

    .program-listing {
        padding: 16px 12px;
    }

    .program-listing-title {
        font-size: 1.2em;
        margin-bottom: 16px;
    }

    .program-cards {
        gap: 10px;
    }

    .program-card-header {
        padding: 12px 14px;
    }

    .program-card-name {
        font-size: 1em;
    }

    .program-card-dates {
        font-size: 0.8em;
    }

    /* Body: stack content + button vertically */
    .program-card-body {
        flex-direction: column;
        align-items: stretch;
        padding: 12px 14px;
        gap: 8px;
    }

    .program-card-meta {
        padding-top: 4px;
        border-top: 1px solid #f0f0f0;
    }

    .program-card-link {
        min-width: unset;
        width: 100%;
        padding: 9px 14px;
        justify-content: center;
    }
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

header p {
    font-size: 1.1em;
    opacity: 0.9;
}

.event-subtitle {
    font-size: 1.25em;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
    padding: 6px 20px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    /* block + fit-content + auto margins: stays a centered pill on its OWN line,
       below the (now inline-block) header h1 + site logo */
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    backdrop-filter: blur(10px);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
    letter-spacing: 0.03em;
}

.event-venue {
    font-size: 1em;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 4px;
    margin-bottom: 8px;
    letter-spacing: 0.02em;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.event-timezone {
    font-size: 0.82em;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 2px;
    margin-bottom: 4px;
    letter-spacing: 0.02em;
    font-family: monospace;
}

.program-time-local {
    display: block;
    font-size: 0.75em;
    color: #888;
    font-style: italic;
    white-space: nowrap;
    margin-top: 2px;
}

.program-time-nextday,
.cal-chip-nextday {
    display: inline-block;
    font-size: 0.7em;
    font-weight: 700;
    color: #fff;
    background: var(--sakura-dark, #E91E63);
    border-radius: 3px;
    padding: 0 3px;
    margin-left: 3px;
    vertical-align: super;
    cursor: default;
}

.filters {
    padding: 30px;
    background: var(--sakura-bg-soft);
    border-bottom: 2px solid var(--sakura-border);
}

.event-desc-block {
    padding: 20px 30px;
    border-bottom: 1px solid var(--sakura-border);
}
.event-desc-title {
    font-size: 0.8em;
    font-weight: 700;
    color: var(--sakura-deep);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}
.event-desc-body {
    background: var(--sakura-bg-soft);
    border: 1px solid var(--sakura-border);
    border-left: 3px solid var(--sakura-medium);
    border-radius: 6px;
    padding: 14px 16px;
    color: #555;
    font-size: 0.93em;
    line-height: 1;
    white-space: pre-wrap;
}

.filter-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.filter-item {
    display: flex;
    flex-direction: column;
}

.filter-item label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #495057;
    font-size: 0.95em;
}

.search-box-wrapper {
    position: relative;
    margin-bottom: 10px;
}

.search-box {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95em;
    transition: all 0.3s;
    background: white;
}

.search-box:focus {
    outline: none;
    border-color: var(--sakura-dark);
    box-shadow: 0 0 0 3px var(--sakura-dark-10);
}

.search-box::placeholder {
    color: #adb5bd;
}

.search-clear-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border: none;
    background: var(--border-color);
    color: #495057;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
}

.search-clear-btn:hover {
    background: var(--sakura-dark);
    color: white;
}

.search-box-wrapper.has-text .search-clear-btn {
    display: flex;
}

/* Selected tags area */
.selected-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
    min-height: 0;
}

.selected-tags:empty {
    display: none;
}

.selected-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px 4px 10px;
    background: var(--sakura-gradient-soft);
    color: var(--sakura-deeper);
    border-radius: 16px;
    font-size: 0.8em;
    font-weight: 500;
    animation: tagAppear 0.2s ease-out;
}

@keyframes tagAppear {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.selected-tag .tag-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: var(--sakura-deeper-20);
    border: none;
    border-radius: 50%;
    color: var(--sakura-deeper);
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
    padding: 0;
    transition: all 0.2s;
}

.selected-tag .tag-remove:hover {
    background: var(--sakura-deep);
    color: white;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 200px;
    overflow-y: auto;
    padding: 15px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    -webkit-overflow-scrolling: touch;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px 10px;
    border-radius: 6px;
    transition: all 0.2s;
    user-select: none;
}

.checkbox-label:hover {
    background: var(--sakura-bg);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--sakura-dark);
}

.checkbox-label span {
    color: #495057;
    font-size: 0.95em;
}

.checkbox-label input[type="checkbox"]:checked + span {
    color: var(--sakura-dark);
    font-weight: 600;
}

.no-options {
    color: #6c757d;
    font-size: 0.9em;
    text-align: center;
    padding: 20px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Action-bar buttons: keep each label on one line and compact so wider
   Noto Sans JP text fits; the row wraps to a new line instead of shrinking. */
.filter-buttons .btn {
    font-size: 0.9em;
    padding: 12px 18px;
    white-space: nowrap;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

.btn-primary {
    background: var(--sakura-gradient);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--sakura-dark-40);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-success {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(86, 171, 47, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, #ff9800 0%, #ffc107 100%);
    color: white;
}
.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.4);
}
.btn-request {
    background: transparent;
    color: var(--sakura-deep, #C2185B);
    border: 1.5px solid var(--sakura-medium, #F48FB1);
    position: relative;
    margin-left: 10px;
}
.btn-request::before {
    content: '';
    position: absolute;
    left: -14px;
    top: 15%;
    height: 70%;
    width: 1px;
    background: #ddd;
}
.btn-request:hover {
    background: var(--sakura-bg, #FFF0F3);
    border-color: var(--sakura-dark, #E91E63);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.15);
}

.btn-subscribe {
    background: linear-gradient(135deg, #6a1b9a 0%, #ab47bc 100%);
    color: white;
}
.btn-subscribe:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(106, 27, 154, 0.4);
}

.calendar-container {
    padding: 30px;
}

/* ========================================
   Date Jump Bar (Fixed position)
   ======================================== */
.date-jump-bar {
    position: fixed;
    top: env(safe-area-inset-top, 0px);
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--sakura-light);
    box-shadow: 0 2px 12px var(--sakura-dark-15);
    display: none; /* hidden by default, shown by JS */
}

.date-jump-bar.visible {
    display: block;
}

.date-jump-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.date-jump-now-btn {
    flex-shrink: 0;
    border: 2px solid #ef4444;
    border-radius: 10px;
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.85em;
    line-height: 1;
    padding: 9px 12px;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(239, 68, 68, 0.22);
    transition: transform 0.15s, box-shadow 0.15s;
}

.date-jump-now-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(239, 68, 68, 0.32);
}

.date-jump-now-btn[hidden] {
    display: none;
}

.date-jump-label {
    font-weight: 600;
    color: var(--sakura-deep);
    font-size: 0.9em;
    white-space: nowrap;
}

.date-jump-buttons {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2px 0;
    flex: 1;
    min-width: 0;
}

.date-jump-buttons::-webkit-scrollbar {
    display: none;
}

@media (hover: hover) {
    .date-jump-buttons {
        scrollbar-width: thin;
        scrollbar-color: var(--sakura-medium) transparent;
    }
    .date-jump-buttons::-webkit-scrollbar {
        display: block;
        height: 3px;
    }
    .date-jump-buttons::-webkit-scrollbar-thumb {
        background: var(--sakura-medium);
        border-radius: 2px;
    }
    .date-jump-buttons::-webkit-scrollbar-track {
        background: transparent;
    }
}

.date-jump-arrow {
    flex-shrink: 0;
    background: var(--sakura-gradient-pale);
    border: 2px solid var(--sakura-light);
    border-radius: 8px;
    color: var(--sakura-deep);
    font-size: 0.85em;
    padding: 4px 8px;
    cursor: pointer;
    transition: all 0.15s;
    line-height: 1;
    align-self: center;
}

.date-jump-arrow:hover {
    background: var(--sakura-gradient);
    color: white;
    border-color: var(--sakura-dark);
}

.date-jump-arrow:disabled,
.date-jump-arrow[disabled] {
    visibility: hidden;
    pointer-events: none;
}

.time-jump-arrow {
    width: 30px;
    height: 30px;
    font-size: 0.8em;
}

.date-jump-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 16px;
    background: var(--sakura-gradient-pale);
    border: 2px solid var(--sakura-light);
    border-radius: 12px;
    text-decoration: none;
    color: var(--sakura-deep);
    font-weight: 600;
    transition: all 0.2s;
    white-space: nowrap;
    min-width: fit-content;
}

.date-jump-btn:hover,
.date-jump-btn.active {
    background: var(--sakura-gradient);
    color: white;
    border-color: var(--sakura-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--sakura-dark-30);
}

.date-jump-day {
    font-size: 0.95em;
    line-height: 1.2;
}

.date-jump-weekday {
    font-size: 0.75em;
    opacity: 0.8;
    line-height: 1.2;
}

.time-jump-row {
    max-width: 1200px;
    margin: -2px auto 0;
    padding: 0 20px 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    overflow: hidden;
}

.time-jump-row[hidden] {
    display: none;
}

.time-jump-label {
    font-size: 0.85em;
}

.time-jump-buttons {
    display: flex;
    gap: 7px;
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-behavior: smooth;
    padding: 2px 0;
    white-space: nowrap;
}

.time-jump-buttons::-webkit-scrollbar {
    display: none;
}

.time-jump-buttons.is-scrollable {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
}

.time-jump-buttons.is-at-start {
    -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 14px), transparent 100%);
    mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 14px), transparent 100%);
}

.time-jump-buttons.is-at-end {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14px, #000 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 14px, #000 100%);
}

.time-jump-buttons.is-at-start.is-at-end {
    -webkit-mask-image: none;
    mask-image: none;
}

@media (hover: hover) {
    .time-jump-buttons {
        scrollbar-width: thin;
        scrollbar-color: var(--sakura-medium) transparent;
        padding-bottom: 5px;
    }
    .time-jump-buttons::-webkit-scrollbar {
        display: block;
        height: 3px;
    }
    .time-jump-buttons::-webkit-scrollbar-thumb {
        background: var(--sakura-medium);
        border-radius: 2px;
    }
    .time-jump-buttons::-webkit-scrollbar-track {
        background: transparent;
    }
}

.time-jump-btn {
    flex: 0 0 auto;
    border: 1px solid var(--sakura-light);
    border-radius: 999px;
    background: #fff;
    color: var(--sakura-deep);
    cursor: pointer;
    font-size: 0.82em;
    font-weight: 650;
    line-height: 1;
    padding: 7px 11px;
    transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}

.time-jump-btn:hover,
.time-jump-btn.active {
    background: var(--sakura-gradient);
    border-color: var(--sakura-dark);
    color: #fff;
    transform: translateY(-1px);
}

.time-jump-btn[hidden] {
    display: none;
}

.program-row-current {
    outline: 2px solid rgba(239, 68, 68, 0.75);
    outline-offset: -2px;
}

.program-row-current .program-time::before {
    content: '● ';
    color: #ef4444;
    font-size: 0.8em;
}

.program-row-jump-highlight {
    animation: program-jump-highlight 1.8s ease-out;
}

@keyframes program-jump-highlight {
    0% { background-color: rgba(255, 235, 59, 0.65); }
    100% { background-color: transparent; }
}

@media (max-width: 640px) {
    .date-jump-inner,
    .time-jump-row {
        padding-left: 10px;
        padding-right: 10px;
        gap: 8px;
    }

    .date-jump-date-label,
    .time-jump-label {
        display: none;
    }

    .date-jump-now-btn {
        font-size: 0.78em;
        padding: 8px 10px;
    }

    .date-jump-btn {
        padding: 7px 12px;
    }

    .time-jump-btn {
        padding: 7px 10px;
    }

    .time-jump-arrow {
        display: none;
    }
}

.day-section {
    margin-bottom: 40px;
    scroll-margin-top: 120px;
}

.day-header {
    background: var(--sakura-gradient);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 1.3em;
    font-weight: 600;
}

.events-table-container {
    overflow-x: auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    -webkit-overflow-scrolling: touch;
}

.events-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95em;
}

.events-table thead {
    background: var(--sakura-gradient);
    color: white;
}

.events-table thead th {
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95em;
    white-space: nowrap;
}

.events-table tbody tr {
    border-bottom: 1px solid var(--border-light);
    transition: background 0.2s;
}

.events-table tbody tr:hover {
    background: var(--sakura-bg-soft);
}

.events-table tbody tr:last-child {
    border-bottom: none;
}

.events-table tbody td {
    padding: 15px 12px;
    vertical-align: top;
}

.program-datetime-cell {
    white-space: nowrap;
    width: 12%;
    vertical-align: middle;
}

.program-info-cell {
    width: 30%;
    vertical-align: middle;
}

.program-title-name {
    font-weight: 600;
    color: #212529;
    font-size: 1em;
    margin-bottom: 4px;
}

.event-description {
    font-size: 0.85em;
    color: #6c757d;
    font-style: italic;
    margin-top: 4px;
    line-height: 1.4;
}

.program-venue-cell {
    width: 35%;
    vertical-align: middle;
}

.program-type-cell {
    width: 12%;
    vertical-align: middle;
    white-space: nowrap;
}

.program-categories-cell {
    width: 23%;
    vertical-align: middle;
}

/* Shared badge layout — only colors differ */
.program-categories-badge,
.program-type-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.85em;
    font-weight: 600;
    border: none;
    cursor: pointer;
    margin: 2px 2px 2px 0;
    vertical-align: middle;
    transition: opacity 0.15s, transform 0.1s;
}
.program-categories-badge:hover,
.program-type-badge:hover {
    opacity: 0.75;
    transform: scale(1.04);
}
.program-categories-badge:active,
.program-type-badge:active {
    transform: scale(0.97);
}

/* Colors */
.program-categories-badge {
    background: var(--sakura-bg);
    color: var(--sakura-deep);
}

.program-type-badge {
    background: #e3f0ff;
    color: #1565c0;
}

/* Artist badge wrap: badge + profile link inline */
.program-categories-badge-wrap {
    display: inline-flex;
    align-items: stretch;
    gap: 0;
    margin: 2px 2px 2px 0;
    position: relative;
}
.program-categories-badge-wrap .program-categories-badge {
    margin: 0;
    border-radius: 16px 0 0 16px;
}
.artist-profile-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 7px;
    background: var(--sakura-deep);
    color: #fff;
    font-size: 0.85em;
    font-weight: 700;
    border-radius: 0 16px 16px 0;
    text-decoration: none;
    opacity: 0.85;
    transition: opacity 0.15s;
}
.artist-profile-link:hover {
    opacity: 1;
}

/* Artist hover card styles now handled by JS fixed-position tooltip in index.php
   See: #artistDpTooltip — position:fixed prevents overflow:hidden clipping */

/* Artist filter: event count badge + profile link */
.checkbox-label .artist-event-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--sakura-dark);
    color: #fff;
    font-size: 0.72em;
    font-weight: 700;
    margin-left: 4px;
    vertical-align: middle;
}
.artist-filter-profile-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--sakura-bg);
    color: var(--sakura-deep);
    font-size: 0.75em;
    font-weight: 700;
    margin-left: 4px;
    text-decoration: none;
    vertical-align: middle;
    opacity: 0.8;
    transition: opacity 0.15s, background 0.15s;
}
.artist-filter-profile-link:hover {
    opacity: 1;
    background: var(--sakura-light);
}

/* Cross-event section (full-width, before footer) */
/* ===== Event Gallery (v6.6.0) ===== */
.event-gallery-section { margin: 20px 0 24px; padding: 0 30px; }
.event-gallery-title {
    font-size: 1.1rem; font-weight: 700; padding: 8px 14px;
    background: var(--sakura-gradient); color: #fff;
    border-radius: 8px; margin-bottom: 12px; display: inline-block;
}
.event-gallery-grid { display: grid; gap: 8px; }
.event-gallery-grid.template-grid1 { grid-template-columns: 1fr; }
.event-gallery-grid.template-grid2 { grid-template-columns: repeat(2, 1fr); }
.event-gallery-grid.template-grid3 { grid-template-columns: repeat(3, 1fr); }
.event-gallery-grid.template-masonry {
    display: block; column-count: 3; column-gap: 8px;
}
.event-gallery-grid.template-masonry .event-gallery-item {
    break-inside: avoid; margin-bottom: 8px; display: block;
}
.event-gallery-item {
    border-radius: 8px; overflow: hidden;
    cursor: pointer; transition: transform .15s, box-shadow .15s;
}
.event-gallery-item:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,.18); }
.event-gallery-item img { width: 100%; height: auto; display: block; }
@media (max-width: 768px) {
    .event-gallery-grid.template-grid3 { grid-template-columns: repeat(2, 1fr); }
    .event-gallery-grid.template-masonry { column-count: 2; }
}
@media (max-width: 480px) {
    .event-gallery-grid.template-grid2,
    .event-gallery-grid.template-grid3 { grid-template-columns: 1fr; }
    .event-gallery-grid.template-masonry { column-count: 1; }
    .event-gallery-section { padding: 0 12px; }
}
/* Lightbox */
.ep-lightbox {
    position: fixed; inset: 0; z-index: 2000;
    display: flex; align-items: center; justify-content: center;
}
.ep-lightbox-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,.88); cursor: pointer;
}
.ep-lightbox-inner {
    position: relative; z-index: 1;
    max-width: 90vw; max-height: 88vh;
}
.ep-lightbox-inner img {
    max-width: 90vw; max-height: 82vh;
    object-fit: contain; border-radius: 4px;
}
.ep-lightbox-close,
.ep-lightbox-prev,
.ep-lightbox-next {
    position: fixed; z-index: 2;
    background: rgba(0,0,0,.55); color: #fff; border: none;
    cursor: pointer; border-radius: 50%;
    width: 40px; height: 40px; font-size: 18px;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s;
}
.ep-lightbox-close:hover, .ep-lightbox-prev:hover, .ep-lightbox-next:hover {
    background: rgba(0,0,0,.8);
}
.ep-lightbox-close  { top: 16px; right: 20px; font-size: 22px; }
.ep-lightbox-prev   { left: 16px; top: 50%; transform: translateY(-50%); }
.ep-lightbox-next   { right: 16px; top: 50%; transform: translateY(-50%); }
.ep-lightbox-caption {
    color: rgba(255,255,255,.85); font-size: .9em;
    margin-top: 10px; text-align: center;
}
/* ============================= */

.cross-event-section {
    margin-top: 20px;
    margin-bottom: 40px;
    padding: 0 30px;
}
.cross-event-section-title {
    background: var(--sakura-gradient);
    color: #fff;
    padding: 15px 20px;
    border-radius: 10px;
    margin: 0 0 20px 0;
    font-size: 1.3em;
    font-weight: 600;
}
.cross-event-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.cross-event-item {
    background: var(--card-bg, white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 14px 16px;
}
.cross-event-name {
    display: inline-block;
    font-size: 1em;
    font-weight: 700;
    color: var(--sakura-dark);
    text-decoration: none;
    margin-bottom: 8px;
}
.cross-event-name:hover {
    text-decoration: underline;
}
.cross-event-artists {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.cross-event-artist-chip {
    display: inline-block;
    padding: 3px 11px;
    border-radius: 12px;
    background: var(--sakura-bg, #fff0f5);
    color: var(--sakura-deep);
    font-size: 0.82em;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid var(--sakura-light, #FFB7C5);
    transition: background 0.15s;
}
.cross-event-artist-chip:hover {
    background: var(--sakura-light, #FFB7C5);
    color: #fff;
}

/* Live stream row highlight */
tr.program-live {
    background: linear-gradient(90deg, rgba(233,30,99,0.05) 0%, transparent 50%);
}

.program-live-icon {
    margin-right: 4px;
    font-style: normal;
    display: inline;
}

.program-join-btn {
    display: inline-block;
    padding: 2px 9px;
    background: #e91e63;
    color: #fff;
    border-radius: 10px;
    font-size: 0.78em;
    font-weight: 600;
    text-decoration: none;
    margin-left: 6px;
    vertical-align: middle;
    white-space: nowrap;
    transition: background 0.15s;
}

.program-join-btn:hover {
    background: #c2185b;
    color: #fff;
}

/* Admin stream link badge */
.stream-link-badge {
    text-decoration: none;
    font-size: 1em;
    vertical-align: middle;
}

.no-events {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.no-events-icon {
    font-size: 4em;
    margin-bottom: 20px;
    opacity: 0.3;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .header-top-left {
        /* keep in sync with common.css — include the safe-area inset so these
           buttons clear the notch/camera in standalone PWA */
        top: calc(10px + env(safe-area-inset-top, 0px));
        left: calc(10px + env(safe-area-inset-left, 0px));
        gap: 6px;
    }
    .home-icon-btn,
    .event-picker-btn {
        width: 34px;
        height: 34px;
    }

    header h1 {
        font-size: 1.4em;
        margin-bottom: 8px;
    }

    header p {
        font-size: 0.85em;
    }

    .filters {
        padding: 20px 15px;
    }

    .filter-group {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .search-box {
        padding: 12px 40px 12px 12px;
        font-size: 16px;
        min-height: 44px;
    }

    .search-clear-btn {
        width: 28px;
        height: 28px;
        right: 8px;
    }

    .checkbox-group {
        max-height: 180px;
        padding: 10px;
    }

    .checkbox-label {
        padding: 10px;
        min-height: 44px;
    }

    .checkbox-label input[type="checkbox"] {
        width: 22px;
        height: 22px;
    }

    .checkbox-label span {
        font-size: 1em;
    }

    .filter-buttons {
        flex-wrap: wrap;
        gap: 6px;
    }

    /* Filter buttons: 3 per row = 2 rows for 6 buttons */
    .filter-buttons .btn {
        flex: 1 1 calc(33.33% - 4px);
        min-width: 0;
        width: auto;
        padding: 8px 6px;
        font-size: 0.82em;
        min-height: 40px;
        text-align: center;
        line-height: 1.3;
        white-space: normal;
    }

    .btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 1em;
        min-height: 48px;
    }

    .date-jump-inner {
        padding: 8px 10px;
        gap: 8px;
    }

    .date-jump-label {
        font-size: 0.75em;
    }

    .date-jump-btn {
        padding: 5px 10px;
        border-radius: 8px;
    }

    .date-jump-day {
        font-size: 0.82em;
    }

    .date-jump-weekday {
        font-size: 0.68em;
    }

    .calendar-container {
        padding: 10px 8px;
    }

    .day-section {
        margin-bottom: 20px;
        scroll-margin-top: 55px;
    }

    .day-header {
        padding: 10px 14px;
        font-size: 1em;
        border-radius: 8px;
        margin-bottom: 10px;
    }

    /* Mobile Card Layout */
    .events-table-container {
        background: transparent;
        box-shadow: none;
        border-radius: 0;
    }

    .events-table {
        display: block;
        font-size: 0.9em;
    }

    .events-table thead {
        display: none;
    }

    .events-table tbody {
        display: block;
    }

    /* Card: no padding — cells control their own spacing */
    .events-table tbody tr {
        display: block;
        background: white;
        border-radius: 10px;
        margin-bottom: 8px;
        padding: 0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        border: none;
        overflow: hidden;
        position: relative;
    }

    .events-table tbody tr:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    }

    .events-table tbody td {
        display: block;
        padding: 4px 12px;
        width: 100% !important;
        border: none;
        box-sizing: border-box;
    }

    /* Hide cells that have no data */
    .cell-empty {
        display: none !important;
    }

    /* Time: full-bleed gradient strip — no extra right padding needed */
    .program-datetime-cell {
        background: var(--sakura-gradient);
        color: white;
        padding: 7px 12px;
        font-size: 0.85em;
        font-weight: 600;
        border-bottom: none;
        margin-bottom: 0;
    }

    .program-datetime-cell::before {
        content: "🕐 ";
        margin-right: 2px;
    }

    /* program-action-cell removed in v6.1.0 */

    /* First body cell: breathing room after gradient strip + right space for button */
    .program-info-cell {
        padding-top: 8px;
        padding-bottom: 4px;
        padding-right: 44px;
    }

    /* Remove emoji — title is visually obvious as first bold text */
    .program-info-cell::before {
        display: none;
    }

    .program-title-name {
        font-size: 1em;
        font-weight: 600;
        color: #212529;
        display: block;
    }

    .event-description {
        font-size: 0.85em;
        color: #6c757d;
        margin-top: 3px;
        padding-left: 0;
        line-height: 1.4;
    }

    .program-venue-cell {
        font-size: 0.85em;
        color: #666;
        padding: 2px 12px;
    }

    .program-venue-cell::before {
        content: "📍 ";
        font-size: 0.9em;
    }

    /* Type + Categories: same line, inline-flex side by side
       Higher specificity (.events-table tbody) beats td { width:100%!important } */
    .events-table tbody .program-type-cell,
    .events-table tbody .program-categories-cell {
        display: inline-flex !important;
        width: auto !important;
        vertical-align: top;
        flex-wrap: wrap;
        align-items: center;
        gap: 2px 4px;
        padding: 3px 4px;
    }

    .events-table tbody .program-type-cell {
        padding-left: 12px;
    }

    .events-table tbody .program-categories-cell {
        padding-bottom: 8px;
    }

    .program-categories-badge,
    .program-type-badge {
        padding: 3px 9px;
        font-size: 0.8em;
        margin: 0;
    }

    .no-events {
        padding: 40px 15px;
    }

    .no-events-icon {
        font-size: 3em;
    }

    .no-events h2 {
        font-size: 1.3em;
    }
}

/* Extra small devices */
@media (max-width: 375px) {
    header h1 {
        font-size: 1.2em;
    }

    header p {
        font-size: 0.8em;
    }

    .day-header {
        font-size: 1em;
        padding: 10px 12px;
    }

    .events-table tbody tr {
        padding: 12px;
    }

    .btn {
        padding: 12px 16px;
        font-size: 0.95em;
    }
}

/* Landscape mode on mobile */
@media (max-width: 768px) and (orientation: landscape) {
    header {
        padding: 40px 15px 15px;
    }

    header h1 {
        font-size: 1.3em;
    }

    .filters {
        padding: 15px;
    }

    .calendar-container {
        padding: 15px;
    }
}

/* ========================================
   View Toggle Switch Styles
   ======================================== */
.view-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 0;
    border-top: 1px solid var(--sakura-border);
    margin-top: 15px;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.toggle-text {
    font-size: 0.95em;
    color: #6c757d;
    font-weight: 500;
    transition: color 0.3s, font-weight 0.3s;
    min-width: 70px;
}

.toggle-text:first-child {
    text-align: right;
}

.toggle-text:last-child {
    text-align: left;
}

.toggle-text.active {
    color: var(--sakura-dark);
    font-weight: 600;
}

.toggle-switch {
    position: relative;
    width: 56px;
    height: 28px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--border-color);
    border-radius: 28px;
    transition: 0.3s;
}

.toggle-slider::before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--sakura-gradient);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(28px);
}

/* ========================================
   Horizontal Gantt Chart Styles
   ======================================== */
.gantt-view {
    margin-top: 15px;
    overflow-x: auto;
    position: relative;
}

/* Scroll indicator shadows — hint that horizontal scroll is available (iOS has no scrollbar) */
.gantt-view::before,
.gantt-view::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 24px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 5;
}
.gantt-view::before {
    left: 0;
    background: linear-gradient(to right, var(--sakura-dark-18), transparent);
}
.gantt-view::after {
    right: 0;
    background: linear-gradient(to left, var(--sakura-dark-18), transparent);
}
.gantt-view.has-scroll-left::before {
    opacity: 1;
}
.gantt-view.has-scroll-right::after {
    opacity: 1;
}

.gantt-chart {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    min-width: 800px;
}

/* Gantt Header - Time axis */
.gantt-header {
    display: flex;
    background: var(--sakura-gradient);
    color: white;
    font-weight: 600;
    font-size: 0.85em;
}

.gantt-header-venue {
    width: 120px;
    min-width: 120px;
    padding: 10px;
    border-right: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gantt-header-timeline {
    flex: 1;
    display: flex;
}

.gantt-header-hour {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    border-left: 1px solid rgba(255,255,255,0.2);
    min-width: 50px;
}

/* Gantt Body */
.gantt-body {
    position: relative;
}

/* Venue Row */
.gantt-row {
    display: flex;
    border-bottom: 1px solid var(--border-light);
    min-height: 60px;
}

.gantt-row:last-child {
    border-bottom: none;
}

.gantt-row:nth-child(even) {
    background: var(--sakura-bg-hover);
}

/* Venue Name */
.gantt-venue-name {
    width: 120px;
    min-width: 120px;
    padding: 10px;
    background: var(--sakura-bg-soft);
    border-right: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 0.8em;
    color: var(--sakura-dark);
    word-break: break-word;
}

/* Timeline Container */
.gantt-timeline {
    flex: 1;
    position: relative;
    min-height: 60px;
}

/* Time Grid Lines */
.gantt-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    pointer-events: none;
}

.gantt-grid-hour {
    flex: 1;
    border-left: 1px dashed var(--border-light);
    min-width: 50px;
}

.gantt-grid-hour:first-child {
    border-left: none;
}

/* Event Bar */
.gantt-program {
    position: absolute;
    top: 5px;
    height: calc(100% - 10px);
    min-height: 50px;
    background: var(--sakura-gradient-full);
    border-radius: 6px;
    padding: 4px 8px;
    box-sizing: border-box;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.15s, box-shadow 0.15s, z-index 0s;
    z-index: 1;
    box-shadow: 0 2px 4px var(--sakura-dark-30);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gantt-program:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px var(--sakura-dark-50);
    z-index: 10;
}

.gantt-program-title {
    font-weight: 600;
    color: white;
    font-size: 0.75em;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.gantt-program-time {
    color: rgba(255,255,255,0.9);
    font-size: 0.65em;
    margin-top: 2px;
    white-space: nowrap;
}

.gantt-program-categories {
    color: rgba(255,255,255,0.85);
    font-size: 0.6em;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Overlapping events indicator */
.gantt-program.has-overlap {
    border: 2px solid white;
}

/* Stack multiple events in same time slot */
.gantt-program.stack-1 { top: 5px; height: calc(50% - 7px); }
.gantt-program.stack-2 { top: calc(50% + 2px); height: calc(50% - 7px); }
.gantt-program.stack-3 { top: 5px; height: calc(33% - 5px); }
.gantt-program.stack-4 { top: calc(33% + 2px); height: calc(33% - 5px); }
.gantt-program.stack-5 { top: calc(66% + 2px); height: calc(33% - 5px); }

/* Gantt Tooltip */
.gantt-program-tooltip {
    position: fixed;
    background: white;
    border-radius: 10px;
    padding: 14px 18px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    z-index: 1000;
    max-width: 320px;
    font-size: 0.9em;
    display: none;
    border: 2px solid var(--sakura-light);
}

.gantt-program-tooltip.show {
    display: block;
}

.gantt-program-tooltip h4 {
    color: var(--sakura-dark);
    margin: 0 0 10px 0;
    font-size: 1.1em;
    padding-right: 25px;
}

.gantt-program-tooltip p {
    color: #495057;
    margin: 6px 0;
    line-height: 1.4;
}

.gantt-program-tooltip p strong {
    color: #212529;
}

.tooltip-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.4em;
    color: #adb5bd;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.tooltip-close:hover {
    color: var(--sakura-dark);
    background: var(--sakura-light);
}

/* Legend for overlap */
.gantt-legend {
    display: flex;
    gap: 15px;
    padding: 10px 15px;
    background: var(--bg-light);
    border-top: 1px solid var(--border-light);
    font-size: 0.8em;
    color: #6c757d;
    flex-wrap: wrap;
}

.gantt-legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.gantt-legend-bar {
    width: 30px;
    height: 14px;
    border-radius: 3px;
    background: var(--sakura-gradient);
}

.gantt-legend-bar.overlap {
    border: 2px solid white;
    box-shadow: 0 0 0 1px var(--sakura-dark);
}

/* ========================================
   Vertical Gantt Chart Styles
   ======================================== */
.gantt-chart.vertical {
    min-width: auto;
    overflow-x: auto;
}

.gantt-header-vertical {
    display: flex;
    background: var(--sakura-gradient);
    color: white;
    font-weight: 600;
    font-size: 0.85em;
    position: sticky;
    top: 0;
    z-index: 10;
}

.gantt-time-label {
    width: 60px;
    min-width: 60px;
    padding: 10px 5px;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.2);
}

.gantt-venue-header {
    flex: 1;
    min-width: 100px;
    padding: 10px 5px;
    text-align: center;
    border-left: 1px solid rgba(255,255,255,0.2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gantt-body-vertical {
    display: flex;
    position: relative;
    min-height: 720px;
}

.gantt-time-axis {
    width: 60px;
    min-width: 60px;
    background: var(--sakura-bg-soft);
    border-right: 1px solid var(--border-light);
}

.gantt-time-slot {
    height: 80px;
    padding: 5px;
    font-size: 0.75em;
    font-weight: 600;
    color: var(--sakura-dark);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.gantt-venue-column {
    flex: 1;
    min-width: 100px;
    position: relative;
    border-left: 1px solid var(--border-light);
}

.gantt-venue-column:nth-child(even) {
    background: var(--sakura-bg-hover);
}

.gantt-grid-vertical {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.gantt-grid-slot {
    height: 80px;
    border-bottom: 1px dashed var(--border-light);
}

/* Vertical Event Bar */
.gantt-program-vertical {
    position: absolute;
    left: 5px;
    right: 5px;
    background: var(--sakura-gradient-vertical);
    border-radius: 6px;
    padding: 6px 8px;
    box-sizing: border-box;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.15s, box-shadow 0.15s, z-index 0s;
    z-index: 1;
    box-shadow: 0 2px 4px var(--sakura-dark-30);
    min-height: 38px;
}

.gantt-program-vertical:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px var(--sakura-dark-50);
    z-index: 10;
}

.gantt-program-vertical.has-overlap {
    border: 2px solid white;
}

/* Overlapping stacking: left/right set dynamically via inline style in renderGanttChart() */

.gantt-program-row-v {
    display: flex;
    align-items: baseline;
    gap: 5px;
    min-width: 0;
    margin-bottom: 2px;
}

.gantt-program-time-v {
    color: rgba(255,255,255,0.95);
    font-size: 0.7em;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.gantt-program-time-local-v {
    color: rgba(255,255,255,0.7);
    font-size: 0.62em;
    font-weight: 400;
    font-style: italic;
    white-space: nowrap;
    flex-shrink: 0;
}

.gantt-program-type-v {
    display: inline-block;
    background: rgba(255,255,255,0.25);
    color: white;
    font-size: 0.65em;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.gantt-program-title-v {
    font-weight: 600;
    color: white;
    font-size: 0.75em;
    line-height: 1.2;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* ========================================
   Gantt Mobile Responsive
   ======================================== */
@media (max-width: 768px) {
    .view-toggle {
        padding: 12px 0;
    }

    .toggle-text {
        font-size: 0.85em;
        min-width: 55px;
    }

    .toggle-switch {
        width: 48px;
        height: 24px;
    }

    .toggle-slider::before {
        height: 18px;
        width: 18px;
    }

    .toggle-switch input:checked + .toggle-slider::before {
        transform: translateX(24px);
    }

    .gantt-chart {
        min-width: 600px;
    }

    .gantt-chart.vertical {
        min-width: auto;
    }

    .gantt-header-venue,
    .gantt-venue-name {
        width: 80px;
        min-width: 80px;
        font-size: 0.7em;
    }

    /* Vertical Gantt Mobile */
    .gantt-time-label {
        width: 50px;
        min-width: 50px;
        font-size: 0.75em;
    }

    .gantt-time-axis {
        width: 50px;
        min-width: 50px;
    }

    .gantt-venue-header {
        min-width: 80px;
        font-size: 0.75em;
    }

    .gantt-venue-column {
        min-width: 80px;
    }

    .gantt-time-slot {
        height: 65px;
        font-size: 0.7em;
    }

    .gantt-grid-slot {
        height: 65px;
    }

    .gantt-program-vertical {
        left: 3px;
        right: 3px;
        padding: 4px 5px;
        min-height: 32px;
    }

    .gantt-program-time-v {
        font-size: 0.65em;
    }

    .gantt-program-title-v {
        font-size: 0.65em;
    }

    .gantt-program-tooltip {
        max-width: 90%;
        left: 5% !important;
        right: 5%;
    }

    .gantt-row {
        min-height: 50px;
    }

    .gantt-program {
        min-height: 40px;
    }

    .gantt-program-title {
        font-size: 0.7em;
    }

    .gantt-program-time {
        font-size: 0.6em;
    }
}

@media (max-width: 375px) {
    .toggle-text {
        font-size: 0.8em;
        min-width: 45px;
    }

    .gantt-header-venue,
    .gantt-venue-name {
        width: 60px;
        min-width: 60px;
        font-size: 0.65em;
        padding: 5px;
    }
}

/* ========================================
   Request Modal Styles
   ======================================== */
.req-modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,.5);display:none;justify-content:center;align-items:center;z-index:2000;padding:20px;box-sizing:border-box}
.req-modal-overlay.active{display:flex}
.req-modal{background:#fff;border-radius:12px;width:100%;max-width:600px;max-height:90vh;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 15px 50px rgba(0,0,0,.3)}
.req-modal-header{display:flex;justify-content:space-between;align-items:center;padding:15px 20px;background:var(--sakura-gradient);color:#fff;flex-shrink:0}
.req-modal-header h2{margin:0;font-size:1.1rem}
.req-close{background:none;border:none;color:#fff;font-size:1.5rem;cursor:pointer}
.req-modal form{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}
.req-modal-body{padding:20px;overflow-y:auto;flex:1;min-height:0}
.req-modal-footer{padding:12px 20px;background:var(--bg-light);display:flex;justify-content:flex-end;gap:10px;border-top:1px solid #ddd;flex-shrink:0}
.req-group{margin-bottom:12px}
.req-group label{display:block;margin-bottom:4px;font-weight:500;font-size:.9rem;color:#333}
.req-group input,.req-group select,.req-group textarea{width:100%;padding:8px 10px;border:2px solid #ddd;border-radius:6px;font-size:.9rem;box-sizing:border-box}
.req-group input:focus,.req-group select:focus,.req-group textarea:focus{outline:none;border-color:var(--sakura-medium)}
.req-row{display:flex;gap:12px}
.req-row .req-group{flex:1}
.req-types{display:flex;gap:12px}
.req-type{display:flex;align-items:center;gap:5px;padding:8px 12px;border:2px solid #ddd;border-radius:6px;cursor:pointer;font-size:.9rem}
.req-type:has(input:checked){border-color:var(--sakura-medium);background:var(--sakura-border)}
.req-type input{width:auto}
@media(max-width:600px){.req-row{flex-direction:column;gap:0}}

/* ── Listing Calendar (Homepage) ─────────────────────────────────────────── */
.listing-cal-section{padding:0 30px 8px}
.listing-cal-section-title{text-align:center;font-size:1.5em;color:#333;margin-top:10px;margin-bottom:24px;font-weight:700}
.listing-cal-wrap{background:var(--sakura-bg-soft,#fff8f9);border-radius:12px;overflow:hidden;padding:20px}
.listing-cal-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;padding:0 4px}
.listing-cal-title{font-size:1.1rem;font-weight:700;color:#333}
.listing-cal-nav{background:none;border:1px solid #ddd;border-radius:50%;width:32px;height:32px;cursor:pointer;font-size:.85rem;display:flex;align-items:center;justify-content:center;color:#888;flex-shrink:0;transition:all .2s}
.listing-cal-nav:hover:not(:disabled){border-color:var(--sakura-dark,#e91e63);color:var(--sakura-dark,#e91e63);background:var(--sakura-border,#fce4ec)}
.listing-cal-nav:disabled{opacity:.3;cursor:default}
.listing-cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:3px}
.listing-cal-dow{text-align:center;font-size:.75rem;font-weight:700;color:#aaa;padding:6px 0 8px;letter-spacing:.02em}
.listing-cal-day{text-align:center;padding:6px 2px;border-radius:8px;font-size:.88rem;color:#444;min-height:42px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:4px;transition:background .15s}
.listing-cal-day.other-month{color:#ccc}
.listing-cal-day.today .listing-cal-day-num{background:var(--sakura-medium,#f48fb1);color:#fff;border-radius:50%;width:24px;height:24px;display:flex;align-items:center;justify-content:center}
.listing-cal-day.has-programs{cursor:pointer}
.listing-cal-day.has-programs:hover{background:var(--sakura-border,#fce4ec)}
.listing-cal-day-num{width:24px;height:24px;display:flex;align-items:center;justify-content:center}
.listing-cal-dot{width:6px;height:6px;border-radius:50%;background:var(--sakura-dark,#e91e63)}
/* Day modal */
.listing-day-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:1000;align-items:center;justify-content:center;padding:16px}
.listing-day-overlay.open{display:flex}
.listing-day-modal{background:#fff;border-radius:12px;width:100%;max-width:520px;max-height:82vh;display:flex;flex-direction:column;box-shadow:0 8px 32px rgba(0,0,0,.2)}
.listing-day-modal-header{background:var(--sakura-gradient);display:flex;align-items:center;justify-content:space-between;padding:14px 18px;flex-shrink:0;border-radius:12px 12px 0 0}
.listing-day-modal-title{font-size:1rem;font-weight:700;color:#fff}
.listing-day-modal-close{background:rgba(255,255,255,.25);border:none;border-radius:50%;width:28px;height:28px;cursor:pointer;color:#fff;font-size:1.1rem;line-height:1;display:flex;align-items:center;justify-content:center}
.listing-day-modal-close:hover{background:rgba(255,255,255,.45)}
.listing-day-modal-body{overflow-y:auto;padding:14px 16px 16px;flex:1;display:flex;flex-direction:column;gap:10px}
/* Mini event cards inside day modal */
.lcal-event-card{border-radius:10px;box-shadow:0 2px 8px rgba(0,0,0,.07);overflow:hidden;transition:transform .15s,box-shadow .15s}
.lcal-event-card:hover{transform:translateY(-1px);box-shadow:0 4px 16px rgba(233,30,99,.15)}
.lcal-event-card-header{background:var(--sakura-gradient);padding:10px 14px;display:flex;flex-direction:column;align-items:flex-start;gap:3px}
.lcal-event-card-name{font-size:.95rem;font-weight:700;color:#fff;line-height:1.3}
.lcal-event-card-dates{font-size:.78rem;color:rgba(255,255,255,.9)}
.lcal-event-card-body{background:#fff;padding:10px 14px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:10px}
.lcal-event-link{display:inline-flex;align-items:center;padding:7px 14px;background:var(--sakura-gradient);color:#fff;text-decoration:none;border-radius:7px;font-weight:600;font-size:.82rem;white-space:nowrap;flex-shrink:0;transition:all .2s}
.lcal-event-link:hover{box-shadow:0 3px 10px var(--sakura-dark-40,rgba(233,30,99,.4))}
/* btn-edit-request desktop style (outside mobile query — only affects desktop) */

/* =============================================================================
   HOMEPAGE REDESIGN: Hero Carousel + Events Grid + Categories + Compact Cal
   v7.5.0
   ============================================================================= */

/* Hero + Calendar Side-by-Side Row */
.hero-calendar-row{display:grid;grid-template-columns:2fr 1fr;gap:16px;align-items:stretch;margin:0;padding:30px 30px 0}

/* Hero Carousel */
.hero-carousel{position:relative;border-radius:14px;overflow:hidden;aspect-ratio:16/9;background:#222;cursor:pointer}
.hero-track{display:flex;height:100%;transition:transform 0.5s ease}
.hero-slide{flex:0 0 100%;background-size:cover;background-position:center;position:relative}
.hero-overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,0.05) 0%,rgba(0,0,0,0.72) 100%)}
.hero-content{position:absolute;bottom:22px;left:22px;right:22px;color:#fff}
.hero-status-badge{display:inline-block;padding:3px 10px;border-radius:20px;font-size:0.74em;font-weight:700;letter-spacing:0.03em;margin-bottom:6px}
.hero-badge-ongoing{background:#10b981;color:#fff}.hero-badge-upcoming{background:#3b82f6;color:#fff}.hero-badge-past{background:#6b7280;color:#fff}
.hero-title{font-size:1.6em;font-weight:800;margin:0 0 8px;line-height:1.25;text-shadow:0 2px 12px rgba(0,0,0,0.65)}
.hero-meta{font-size:0.85em;opacity:0.9;margin-bottom:12px}
.hero-cta{display:inline-block;background:var(--sakura-dark,#e91e63);color:#fff;padding:9px 22px;border-radius:24px;font-weight:700;font-size:0.88em;text-decoration:none;transition:background 0.2s,transform 0.15s;position:relative;z-index:1}
.hero-cta:hover{background:var(--sakura-deep,#c2185b);transform:translateY(-1px)}
.hero-nav{position:absolute;top:50%;transform:translateY(-50%);background:rgba(255,255,255,0.2);border:none;color:#fff;font-size:1.6em;width:38px;height:38px;border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background 0.2s;z-index:2;backdrop-filter:blur(4px)}
.hero-nav:hover{background:rgba(255,255,255,0.38)}.hero-prev{left:10px}.hero-next{right:10px}
.hero-dots{position:absolute;bottom:10px;left:50%;transform:translateX(-50%);display:flex;gap:6px;z-index:2}
.hero-dot{width:8px;height:8px;border-radius:50%;background:rgba(255,255,255,0.45);border:none;cursor:pointer;padding:0;transition:background 0.2s,transform 0.2s}
.hero-dot.active{background:#fff;transform:scale(1.3)}

/* Compact Listing Calendar (side panel) */
.listing-cal-compact{background:var(--sakura-bg-soft,#fff8f9);border-radius:14px;padding:14px;box-shadow:0 2px 12px rgba(0,0,0,0.07);overflow:auto}
.listing-cal-compact .listing-cal-section-title{font-size:0.9em;margin:0 0 8px}
.listing-cal-compact .listing-cal-header{gap:4px;margin-bottom:6px}
.listing-cal-compact .listing-cal-title{font-size:0.88em}
.listing-cal-compact .listing-cal-nav{font-size:0.78em;padding:3px 7px}
.listing-cal-compact .listing-cal-grid{gap:2px}
.listing-cal-compact .listing-cal-dow{font-size:0.7em;padding:2px 0}
.listing-cal-compact .listing-cal-day{padding:4px 2px;font-size:0.76em;min-height:28px}
.listing-cal-compact .listing-cal-dot{width:4px;height:4px}

/* Events Grid (replaces program-cards) */
.events-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-top:16px}
.event-card{background:#fff;border-radius:12px;overflow:hidden;text-decoration:none;color:inherit;box-shadow:0 2px 10px rgba(0,0,0,0.07);transition:transform 0.2s,box-shadow 0.2s;display:flex;flex-direction:column}
.event-card:hover{transform:translateY(-4px);box-shadow:0 8px 24px rgba(0,0,0,0.13)}
.event-card-cover{aspect-ratio:4/3;background-size:cover;background-position:center;position:relative}
.event-card-cover-gradient{background:var(--sakura-gradient,linear-gradient(135deg,#FFB7C5,#E91E63))}
.event-card-badge{position:absolute;top:8px;left:8px;padding:4px 10px;border-radius:12px;font-size:0.72em;font-weight:700}
.event-card-badge.ongoing{background:#10b981;color:#fff}.event-card-badge.upcoming{background:#3b82f6;color:#fff}.event-card-badge.past{background:#6b7280;color:#fff}
.event-card-body{padding:12px 14px;flex:1;display:flex;flex-direction:column;gap:4px}
.event-card-name{font-size:0.92em;font-weight:700;margin:0;line-height:1.35;color:#1f2937;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.event-card-date{font-size:0.78em;color:#6b7280}
.event-card-description{height:0;overflow:hidden;margin:0}
.event-card-body .program-card-readmore{margin-top:auto}

/* Responsive */
@media(max-width:1024px){.events-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:768px){.hero-calendar-row{grid-template-columns:1fr;padding:16px 12px 0}.hero-carousel{aspect-ratio:4/3}.hero-title{font-size:1.25em}.hero-content{bottom:14px;left:14px;right:14px}.events-grid{grid-template-columns:repeat(2,1fr);gap:12px}}
@media(max-width:480px){.events-grid{grid-template-columns:1fr}.hero-carousel{aspect-ratio:3/2}.hero-title{font-size:1.05em}.hero-cta{padding:7px 16px;font-size:0.82em}.hero-nav{width:32px;height:32px;font-size:1.2em}}

/* =============================================================================
   FTS5 Full-Text Search — search bar + results
   v9.0.0
   ============================================================================= */

/* Search bar wrapper */
.fts-search-bar-wrap {
    padding: 16px 30px 0;
}
.fts-search-form {
    max-width: 640px;
    margin: 0 auto;
}
.fts-search-inner {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1.5px solid var(--sakura-border, #fce4ec);
    border-radius: 28px;
    padding: 6px 6px 6px 16px;
    gap: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.fts-search-inner:focus-within {
    border-color: var(--sakura-medium, #f48fb1);
    box-shadow: 0 2px 14px var(--sakura-dark-15, rgba(233,30,99,.15));
}
.fts-search-icon { font-size: 1em; color: #aaa; flex-shrink: 0; }
.fts-search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.95em;
    color: #333;
    min-width: 0;
}
.fts-clear-btn {
    color: #bbb;
    text-decoration: none;
    font-size: 0.85em;
    padding: 4px 6px;
    flex-shrink: 0;
}
.fts-clear-btn:hover { color: #888; }
.fts-submit-btn {
    background: var(--sakura-dark, #e91e63);
    color: #fff;
    border: none;
    border-radius: 22px;
    padding: 8px 20px;
    font-size: 0.88em;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
}
.fts-submit-btn:hover { background: var(--sakura-deep, #c2185b); }

/* Results wrapper */
.fts-results-wrap {
    padding: 16px 30px 20px;
}
.fts-results-heading {
    font-size: 1em;
    font-weight: 600;
    color: #555;
    margin: 0 0 16px;
}
.fts-results-heading em {
    color: var(--sakura-dark, #e91e63);
    font-style: normal;
}
.fts-no-results {
    text-align: center;
    padding: 48px 0;
    color: #aaa;
    font-size: 1em;
}
.fts-section { margin-bottom: 24px; }
.fts-section-title {
    font-size: 0.82em;
    font-weight: 700;
    color: var(--sakura-deep, #c2185b);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 2px solid var(--sakura-border, #fce4ec);
}
.fts-result-group-label {
    font-size: 0.78em;
    font-weight: 600;
    color: #888;
    margin: 10px 0 4px;
    padding-left: 4px;
}
.fts-result-item {
    display: block;
    padding: 10px 14px;
    background: #fff;
    border-radius: 10px;
    margin-bottom: 6px;
    border-left: 3px solid var(--sakura-medium, #f48fb1);
    text-decoration: none;
    color: inherit;
    transition: background 0.15s, border-color 0.15s;
}
.fts-result-item:hover {
    background: var(--sakura-bg-soft, #fff8f9);
    border-left-color: var(--sakura-dark, #e91e63);
}
.fts-result-name {
    font-weight: 600;
    font-size: 0.92em;
    color: #222;
    margin-bottom: 2px;
}
.fts-result-snippet {
    font-size: 0.8em;
    color: #666;
    margin-bottom: 2px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.fts-result-snippet mark {
    background: var(--sakura-bg-medium, #ffe0eb);
    border-radius: 3px;
    padding: 0 2px;
    font-style: normal;
}
.fts-result-meta {
    font-size: 0.76em;
    color: #999;
}

@media (max-width: 768px) {
    .fts-search-bar-wrap { padding: 12px 12px 0; }
    .fts-results-wrap { padding: 12px 12px 16px; }
    .fts-submit-btn { padding: 8px 14px; font-size: 0.82em; }
}

/* Search Results 2-Column Layout */
.fts-results-layout{display:grid;grid-template-columns:2fr 1fr;gap:24px;align-items:start;margin-top:8px}
.fts-results-main{}
.fts-results-sidebar{background:var(--sakura-bg-soft,#fff8f9);border-radius:12px;padding:14px}

/* Total count badge */
.fts-total-count{font-size:0.8em;font-weight:400;color:#999;margin-left:6px}

/* Compact sidebar items */
.fts-sidebar-item{padding:8px 12px;font-size:0.85em}
.fts-sidebar-item .fts-result-name{font-size:0.9em}
.fts-sidebar-item .fts-result-meta{font-size:0.75em}

/* Pagination */
.fts-pagination{display:flex;gap:5px;flex-wrap:wrap;margin-top:16px;justify-content:center}
.fts-page-btn{display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:34px;padding:0 10px;border-radius:8px;background:#fff;border:1px solid var(--sakura-border,#fce4ec);color:#333;text-decoration:none;font-size:0.88em;font-weight:600;transition:background 0.15s,border-color 0.15s}
.fts-page-btn:hover{background:var(--sakura-bg-soft,#fff8f9);border-color:var(--sakura-medium,#f48fb1)}
.fts-page-current{background:var(--sakura-dark,#e91e63);border-color:var(--sakura-dark,#e91e63);color:#fff;cursor:default}
.fts-page-ellipsis{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:34px;color:#bbb;font-size:0.88em}

@media(max-width:768px){.fts-results-layout{grid-template-columns:1fr}.fts-results-sidebar{margin-top:0}}

/* ===== Inline Event Credits Section ===== */
.event-credits-section {
    margin-top: 20px;
    margin-bottom: 40px;
    padding: 0 30px;
}
.event-credits-title {
    background: var(--sakura-gradient);
    color: #fff;
    padding: 15px 20px;
    border-radius: 10px;
    margin: 0 0 20px 0;
    font-size: 1.3em;
    font-weight: 600;
}
.event-credits-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.event-credits-item {
    background: var(--card-bg, white);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 14px 16px;
}
.event-credits-item-title {
    font-weight: 600;
    font-size: 0.95em;
    color: var(--text-primary, #333);
    margin-bottom: 4px;
}
.event-credits-item-desc {
    margin: 6px 0;
    color: #666;
    font-size: 0.88rem;
}
.event-credits-item-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--sakura-dark, #e91e63);
    font-size: 0.85rem;
    text-decoration: none;
    word-break: break-all;
    overflow-wrap: anywhere;
}
.event-credits-item-link:hover { text-decoration: underline; }
@media(max-width:768px){
    .event-credits-section { padding: 0 12px; }
}

/* ── Live Now strip (Homepage) ───────────────────────────────────────────── */
.live-now-strip {
    max-width: 1200px;
    margin: 16px;
    padding: 14px 16px;
    background: var(--sakura-bg-soft);
    border: 1px solid var(--sakura-dark-15);
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.live-now-group + .live-now-group { margin-top: 12px; }
.live-now-heading {
    margin: 0 0 8px;
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--sakura-deep);
}
.live-now-rows { display: flex; flex-direction: column; gap: 8px; }
.live-now-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--sakura-dark-10);
    border-left: 4px solid var(--sakura-medium);
    border-radius: 10px;
    padding: 8px 12px;
    transition: box-shadow .15s, transform .15s;
}
.live-now-row.is-live { border-left-color: #e53935; }
.live-now-row:hover { box-shadow: 0 3px 12px rgba(0,0,0,0.10); transform: translateY(-1px); }
.live-now-link {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}
.live-now-badge {
    flex: 0 0 auto;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #e53935;
    box-shadow: 0 0 0 0 rgba(229,57,53,.6);
    animation: liveNowPulse 1.4s infinite;
}
@keyframes liveNowPulse {
    0%   { box-shadow: 0 0 0 0 rgba(229,57,53,.6); }
    70%  { box-shadow: 0 0 0 8px rgba(229,57,53,0); }
    100% { box-shadow: 0 0 0 0 rgba(229,57,53,0); }
}
.live-now-main { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.live-now-title {
    font-weight: 700;
    color: #222;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.live-now-meta {
    font-size: .82rem;
    color: #777;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.live-now-time {
    flex: 0 0 auto;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    color: var(--sakura-deep);
    white-space: nowrap;
}
.live-now-time-local { font-size: .78rem; font-weight: 400; font-style: italic; color: #999; }
.live-now-countdown {
    flex: 0 0 auto;
    font-size: .82rem;
    font-weight: 700;
    color: #e53935;
    white-space: nowrap;
}
.live-now-watch {
    flex: 0 0 auto;
    text-decoration: none;
    font-size: .82rem;
    font-weight: 700;
    color: #fff;
    background: #e53935;
    padding: 5px 10px;
    border-radius: 999px;
    white-space: nowrap;
}
.live-now-watch:hover { background: #c62828; }
@media (max-width: 768px) {
    .live-now-strip { margin: 12px; padding: 12px; }
    .live-now-link { flex-wrap: wrap; gap: 4px 10px; }
    .live-now-time, .live-now-countdown { font-size: .8rem; }
}
@media (max-width: 480px) {
    .live-now-row { flex-wrap: wrap; }
    .live-now-meta { white-space: normal; }
}
