* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: #ffffff;
    color: #1a1a1a;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1; }

.site-title {
    text-align: center;
    font-size: 2.2em;
    font-weight: 700;
    margin: 20px 18px 10px;
    line-height: 1.3;
    color: #333;
}

.title-part {
    display: inline;
}

@media (min-width: 769px) {
    .title-part {
        display: inline;
    }
}

@media (max-width: 768px) {
    .site-title {
        font-size: 1.8em;
    }
    .title-part {
        display: block;
    }
    .event-card .poster-fallback {
        display: none !important;
    }
}

.site-footer {
    background: #111;
    color: #aaa;
    font-size: 0.75em;
    text-align: left;
    padding: 12px 18px;
    line-height: 1.5;
    margin-top: auto;
}
.site-footer p { margin: 0; }

.footer-disclaimer {
    display: block;
    margin-top: 8px;
}

.footer-update-line {
    display: block;
    text-align: right;
    margin-top: 10px;
}

.footer-date {
    text-align: right;
}

/* Large text mode for accessibility (Tercera Edad) */
body.large-text {
    font-size: 1.25em;
}

body.large-text .event-card h3 {
    font-size: 1.2em;
}

body.large-text .event-card .subtitle,
body.large-text .event-card .director,
body.large-text .event-card .cinema-name,
body.large-text .event-card .next-label,
body.large-text .event-card .next-datetime,
body.large-text .event-card .next-venue,
body.large-text .event-card .price,
body.large-text .event-card .price-from,
body.large-text .event-card .price-venue,
body.large-text .showtime-line,
body.large-text .calendar-day .day-number {
    font-size: 1.1em;
}

body.large-text .category-btn {
    font-size: 1.2em;
    padding: 22px 30px;
}

body.large-text .category-icon {
    font-size: 2em;
}

body.large-text #current-month {
    font-size: 1.2em;
}

body.large-text .calendar-weekday {
    font-size: 0.9em;
}

body.large-text .modal-header h2 {
    font-size: 2.2em;
}

body.large-text .modal-header .subtitle {
    font-size: 1.4em;
}

body.large-text .detail-section h3,
body.large-text .detail-section h4 {
    font-size: 1.2em;
}

body.large-text .detail-section p,
body.large-text .detail-section li {
    font-size: 1.15em;
}

body.large-text .schedule-group .day-header {
    font-size: 1.2em;
}

body.large-text .schedule-item .showtime-time {
    font-size: 1.1em;
}

body.large-text .schedule-item .showtime-venue {
    font-size: 1em;
}

body.large-text .btn {
    font-size: 1.1em;
    padding: 14px 28px;
}

/* Price Filter Slider */
#price-filter {
    max-width: 100%;
    width: 100%;
    margin: 15px auto 5px;
    padding: 15px 16px;
    background: #f8f8f8;
    border-radius: 0;
    border: none;
}

.price-slider-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.9em;
    font-weight: 600;
    color: #4a4a4a;
}

#price-value {
    color: #4a9a9e;
    font-weight: 700;
    font-size: 1.1em;
}

#price-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
    margin: 8px 0;
}

#price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #4a9a9e;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

#price-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #4a9a9e;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.price-ticks {
    display: flex;
    justify-content: space-between;
    font-size: 0.7em;
    color: #888;
    margin-top: 4px;
    padding: 0 2px;
}

.price-ticks span {
    text-align: center;
    min-width: 20px;
}

/* Calendar Container */
#calendar-container {
    max-width: 100%;
    width: 100%;
    margin: 5px auto 15px;
    padding: 0 16px;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
}

#calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    color: #1a1a1a;
}

#calendar-header button {
    background: none;
    border: none;
    color: #1a1a1a;
    font-size: 1.6em;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 8px;
    transition: background 0.2s;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#calendar-header button:hover {
    background: rgba(0,0,0,0.1);
}

#current-month {
    font-weight: 700;
    font-size: 1.3em;
    text-transform: capitalize;
}

#calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    background: #e0e0e0;
    padding: 2px;
}

.calendar-weekday {
    background: #f8f8f8;
    padding: 14px 4px;
    text-align: center;
    font-weight: 700;
    font-size: 0.9em;
    color: #666;
    text-transform: uppercase;
}

.calendar-day {
    background: #ffffff;
    padding: 12px 4px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 52px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.calendar-day:hover {
    background: #f5f5f5;
}

.calendar-day .day-number {
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
}

.calendar-day.today {
    background: rgba(64, 170, 70, 0.15);
}

.calendar-day.today .day-number {
    color: rgba(64, 170, 70, 1);
    font-weight: 700;
}

.calendar-day.selected {
    background: rgba(64, 170, 70, 0.63);
    border: 2px solid rgba(64, 170, 70, 0.63);
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.calendar-day.selected .day-number {
    color: #ffffff;
    font-weight: 700;
}

.calendar-day.has-events::after {
    content: '';
    width: 5px;
    height: 5px;
    background: rgba(64, 170, 70, 0.63);
    border-radius: 50%;
    margin-top: 3px;
}

.calendar-day.selected.has-events::after {
    background: #ffffff;
}

.calendar-day.empty {
    background: #fafafa;
    cursor: default;
}

.calendar-day.past {
    opacity: 0.4;
}

.calendar-day.past .day-number {
    color: #999;
}

/* Selected Date Display */
#selected-date-display {
    max-width: 600px;
    margin: 0 auto;
    padding: 12px;
}

#date-title {
    font-size: 1.8em;
    font-weight: 700;
    color: rgba(69, 147, 73, 1);
    margin: 16px 0;
    padding: 0;
    text-align: center;
}

/* Events Grid */
main {
    max-width: 600px;
    margin: 0 auto;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 400px;
}

/* Event Cards */
.event-card {
    background: #ffffff;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    min-height: 220px;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.event-card:last-child {
    border-bottom: none;
}

.event-card:hover {
    background: transparent;
}

/* Long-running events: compact, no image, at the end */
.long-events-divider {
    text-align: center;
    padding: 0;
    margin: 16px auto;
    max-width: 600px;
    width: 100%;
}

.long-events-label {
    font-size: 1.8em;
    color: rgba(69, 147, 73, 1);
    letter-spacing: 1px;
    font-weight: 600;
    margin: 16px 0;
    display: inline-block;
}

@media (min-width: 769px) {
    .long-events-label .title-part {
        display: inline;
    }
}

@media (max-width: 768px) {
    .long-events-label .title-part {
        display: block;
    }
}

.event-card-long {
    display: inline-block;
    width: 100%;
    max-width: 600px;
    margin: 4px auto;
    padding: 0;
    text-align: left;
    box-shadow: none;
    border-radius: 0;
    background: transparent;
    border-bottom: 1px solid #eee;
    min-height: auto;
}

.event-card-long:hover {
    transform: none;
    box-shadow: none;
    background: #fafafa;
}

.event-card-long h3 {
    font-size: 0.95em;
    display: inline;
    margin-right: 4px;
    font-weight: 600;
    width: auto;
    color: #1a1a1a;
    text-shadow: none;
    background: none;
    padding: 0;
    border-radius: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    line-height: 1.3;
}

.event-card-long .next-showtime {
    display: inline-flex;
    margin: 0;
    padding: 2px 8px;
    background: #f5f5f5;
    border-radius: 4px;
    font-size: 0.8em;
}

.event-card-long .next-showtime:hover {
    background: #e8e8e8;
}

.event-card-long .next-datetime {
    font-weight: 600;
    color: #444;
    margin-right: 4px;
}

.event-card-long .next-venue {
    color: #666;
    font-size: 0.9em;
    margin-right: 2px;
}

.event-card-long .price,
.event-card-long .price-from,
.event-card-long .price-venue {
    display: none;
}

.event-card .poster-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.event-card .poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-card:hover .poster {
    transform: scale(1.05);
}

/* Poster fallback when image fails to load */
.poster-fallback {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px;
    text-align: center;
    box-sizing: border-box;
}

.poster-fallback-type {
    font-size: 1.1em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #4a9a9e;
    margin-bottom: 6px;
    line-height: 1.1;
}

.poster-fallback-title {
    font-size: 0.95em;
    font-weight: 700;
    color: #222;
    line-height: 1.2;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

/* Share Button on Card */
.share-circle-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.share-circle-btn:hover {
    background: white;
    transform: scale(1.1);
}

.share-circle-btn svg {
    width: 14px;
    height: 14px;
    color: #4a9a9e;
}

.event-card .info {
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding: 16px;
    background: linear-gradient(transparent 30%, rgba(0,0,0,0.8) 100%);
    min-width: 0;
}

.event-card-long .info {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0;
    background: none;
    position: static;
    margin-top: 0;
    box-shadow: none;
}

.event-card h3 {
    font-size: 1.05em;
    margin-bottom: 2px;
    color: #1a1a1a;
    font-weight: 700;
    line-height: 1.2;
    font-family: 'Georgia', 'Times New Roman', serif;
    background: rgba(255,255,255,0.7);
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
}

.event-type-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.65em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 6px;
    vertical-align: middle;
}

.workshop-badge {
    background: #e67e22;
    color: white;
}

.cine-badge {
    background: #3498db;
    color: white;
}

.teatro-badge {
    background: #9b59b6;
    color: white;
}

.exposicion-badge {
    background: #27ae60;
    color: white;
}

.modal-header .event-type-badge {
    font-size: 0.5em;
    padding: 3px 10px;
    border-radius: 4px;
    margin-right: 8px;
    vertical-align: middle;
}

.event-card .subtitle {
    color: rgba(255,255,255,0.85);
    font-size: 0.8em;
    margin-bottom: 4px;
    font-style: italic;
}

.event-card .director {
    color: #333;
    font-size: 0.75em;
    margin-bottom: 6px;
    font-weight: 500;
    background: rgba(255,255,255,0.7);
    display: inline-block;
    padding: 1px 6px;
    border-radius: 3px;
}

.event-card .venue {
    color: #7ecfd3;
    font-weight: 700;
    font-size: 0.8em;
    margin-bottom: 4px;
    line-height: 1.3;
}

.event-card .showtimes {
    margin-top: auto;
    margin-bottom: 4px;
}

.event-card .showtime {
    color: rgba(255,255,255,0.85);
    font-size: 0.8em;
    margin-bottom: 1px;
    padding: 1px 0;
}

/* Cinemas list */
.event-card .cinemas-list {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.event-card .cinema-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 8px;
    background: #f8f8f8;
    border: 1px solid #e8e8e8;
    cursor: pointer;
    transition: all 0.2s ease;
}

.event-card .cinema-line:hover {
    background: #f0f0f0;
    border-color: #4a9a9e;
}

.event-card .cinema-name {
    font-weight: 600;
    color: #fff;
    font-size: 0.8em;
}

.event-card .cinema-arrow {
    color: #4a9a9e;
    font-size: 0.9em;
    font-weight: 700;
}

/* Precio */
.event-card .price {
    color: #fff;
    font-weight: 600;
    font-size: 0.8em;
    margin-top: 8px;
    padding: 4px 0;
    line-height: 1.3;
}

.event-card .price-from {
    color: #fff;
    font-weight: 600;
    font-size: 0.8em;
    margin-top: 8px;
    padding: 4px 0 1px 0;
    line-height: 1.2;
}

.event-card .price-venue {
    color: rgba(255,255,255,0.75);
    font-size: 0.75em;
    margin-top: 1px;
    font-weight: 500;
}

.passeline-link {
    color: #4a9a9e;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.passeline-link:hover {
    color: #2c5f61;
}

/* Next Showtime */
.event-card .next-showtime {
    margin-top: 8px;
    padding: 6px 8px;
    background: #e7f7d7;
    border: solid 1px rgba(101, 158, 74, 0.37);
    border-left: 3px solid rgba(101, 158, 74, 0.37);
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.event-card .next-showtime .next-datetime,
.event-card .next-showtime .next-venue,
.event-card .next-showtime .next-label {
    color: #333;
}

.event-card .next-showtime:hover {
    background: rgba(172, 226, 116, 0.5);
}

.event-card .show-started {
    background: rgba(255, 193, 7, 0.85);
    border-color: rgba(255, 193, 7, 0.9);
    border-left-color: #e6a800;
}

.event-card .show-started:hover {
    background: rgba(255, 193, 7, 0.95);
}

.started-text {
    color: #000;
    font-weight: 800;
}

.event-card .next-showtime .cinema-arrow {
    color: #4a9a9e;
    font-size: 0.9em;
    font-weight: 700;
    flex-shrink: 0;
}

.event-card .next-label {
    font-size: 0.65em;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(255,255,255,0.75);
    font-weight: 700;
}

.event-card .next-datetime {
    font-weight: 700;
    font-size: 0.85em;
    color: #fff;
    line-height: 1.3;
}

.event-card .next-venue {
    font-size: 0.85em;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
}

/* Modal price section */
.detail-section p {
    line-height: 1.8;
}

/* Loading State */
.loading {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.hidden {
    display: none;
}

#main-content {
    flex: 1;
}

.loading.hidden {
    display: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f0f0f0;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    grid-column: 1 / -1;
}

.empty-state.hidden {
    display: none;
}

.empty-state .icon {
    font-size: 64px;
    margin-bottom: 20px;
    display: block;
}

.empty-state h3 {
    color: #666;
    margin-bottom: 10px;
}

.empty-state p {
    color: #999;
}

/* Category Selector Modal */
.category-modal-content {
    text-align: center;
    padding: 40px 30px;
    max-width: 500px;
}

.category-modal-content h2 {
    font-size: 1.8em;
    color: #2c3e50;
    margin-bottom: 10px;
}

.category-subtitle {
    color: #7f8c8d;
    margin-bottom: 30px;
    font-size: 1.1em;
}

.category-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.category-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 25px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
    text-align: left;
}

.category-btn:hover {
    border-color: #667eea;
    background: #f8f9ff;
    transform: translateX(5px);
}

.category-btn:active {
    transform: translateX(2px);
}

.category-btn-active {
    background: #667eea;
    border-color: #667eea;
    color: #fff;
}

.category-btn-active .category-label {
    color: #fff;
}

.category-btn-active:hover {
    background: #5a6fd6;
    border-color: #5a6fd6;
    transform: none;
}

.category-icon {
    font-size: 1.8em;
}

.category-label {
    flex: 1;
}

.category-hint {
    color: #999;
    font-size: 0.9em;
    font-style: italic;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 850px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    cursor: pointer;
    color: white;
    z-index: 10;
    background: rgba(0,0,0,0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.close-btn:hover {
    background: rgba(0,0,0,0.8);
}

/* Share Modal */
.share-modal-content {
    max-width: 420px !important;
    padding: 32px 24px 20px;
    text-align: center;
}

.share-modal-content h3 {
    font-size: 1.3rem;
    margin: 0 0 20px;
    color: #333;
}

.share-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.share-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    color: white;
    transition: transform 0.15s, opacity 0.15s;
}

.share-option:active {
    transform: scale(0.96);
}

.share-option svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.share-whatsapp { background: #25D366; }
.share-telegram { background: #0088cc; }
.share-twitter { background: #000; }
.share-email { background: #666; }

.share-copy-row {
    display: flex;
    gap: 8px;
}

.share-link-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.85rem;
    background: #f8f8f8;
    cursor: pointer;
}

.share-copy-btn {
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    background: #4a9a9e;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
}

.share-copy-btn:hover {
    background: #3a8a8e;
}

.share-copy-btn:active {
    background: #2a7a7e;
}

.modal-body {
    padding: 0;
}

.modal-header {
    position: relative;
    height: 450px;
}

.modal-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-poster-fallback {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #e8e8e8;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    box-sizing: border-box;
}

.modal-poster-fallback-type {
    font-size: 2.5em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #4a9a9e;
    margin-bottom: 16px;
    line-height: 1.1;
}

.modal-poster-fallback-title {
    font-size: 3em;
    font-weight: 800;
    color: #222;
    line-height: 1.2;
    max-width: 90%;
    word-break: break-word;
}

.modal-header .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    padding: 100px 30px 30px;
    color: white;
}

.modal-header h2 {
    font-size: 2em;
    margin-bottom: 8px;
    font-weight: 800;
    line-height: 1.2;
}

.modal-header .subtitle {
    font-size: 1.2em;
    opacity: 0.85;
    margin-bottom: 8px;
    font-style: italic;
}

.modal-header .director {
    font-size: 1.1em;
    opacity: 0.9;
}

.modal-details {
    padding: 30px;
}

.detail-section {
    margin-bottom: 25px;
    padding-bottom: 25px;
}

.detail-section:last-child {
    margin-bottom: 0;
}

.detail-section h3,
.detail-section h4 {
    color: #667eea;
    margin-bottom: 12px;
    font-size: 1.1em;
    font-weight: 700;
}

.detail-section p,
.detail-section li {
    color: #555;
    line-height: 1.8;
    font-size: 1.05em;
}

.detail-section ul {
    list-style: none;
    padding: 0;
}

.detail-section li {
    padding: 8px 0;
}

/* Venue Info in Modal */
.venue-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 12px;
}

.venue-info-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 1em;
    color: #555;
}

.venue-info-inline .venue-name {
    font-weight: 700;
    color: #2c3e50;
}

.venue-info-inline .venue-address {
    color: #7f8c8d;
}

.venue-name {
    font-weight: 700;
    font-size: 1.1em;
    color: #2c3e50;
    margin-bottom: 4px;
}

.venue-address {
    color: #7f8c8d;
    font-size: 0.95em;
    margin-bottom: 4px;
}

.venue-contact {
    color: #999;
    font-size: 0.9em;
}

/* Meta Grid */
.meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.meta-label {
    color: #667eea;
    font-size: 0.8em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-value {
    color: #2c3e50;
    font-size: 0.95em;
    font-weight: 600;
}

/* Synopsis Section */
.cinema-name-section {
    text-align: center;
    padding: 20px 0;
    border-bottom: 2px solid #667eea;
}

.cinema-title {
    color: #2c3e50;
    font-size: 1.5em;
    font-weight: 700;
    margin: 0;
}

.synopsis-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
}

.synopsis-text {
    color: #555;
    line-height: 1.8;
    font-size: 1.05em;
    margin-bottom: 16px;
}

.cast-text {
    color: #666;
    line-height: 1.6;
    font-size: 0.95em;
    margin-top: 12px;
}

.meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.meta-tag {
    background: #f0f0f0;
    color: #555;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 500;
}

.venue-address-text {
    color: #555;
    font-size: 1em;
    font-weight: 500;
}

/* Venue Section in Modal */
.venue-section {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.venue-section h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.venue-section .price-info {
    margin: 10px 0;
}

.venue-section .venue-address-text {
    margin-top: 10px;
    color: #666;
}

/* Schedule Items */
.schedule-item,
.detail-section .schedule-item,
.modal-details .schedule-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    padding-left: 16px;
    padding-right: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 8px;
}

.schedule-item:last-child {
    margin-bottom: 0;
}

.schedule-item .day {
    font-weight: 700;
    color: #2c3e50;
}

.schedule-item .time {
    color: #667eea;
    font-weight: 700;
}

/* Schedule Group (by day) */
.schedule-group {
    padding: 12px 20px 12px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 12px;
}

.schedule-group:last-child {
    margin-bottom: 0;
}

.schedule-group .day-header {
    font-weight: 700;
    font-size: 1.1em;
    color: #2c3e50;
    display: block;
    margin: 0;
    padding: 0;
}

.schedule-item .showtime-time {
    font-weight: 700;
    color: #667eea;
    font-size: 1em;
}

.schedule-item .showtime-venue {
    color: #666;
    font-size: 0.9em;
}

.schedule-group .schedule-line {
    color: #2c3e50;
    font-size: 1em;
    line-height: 1.5;
    margin-left: 20px;
}

.expired-time {
    text-decoration: line-through;
    color: #999;
}

.expired-day .schedule-line {
    text-decoration: line-through;
    color: #999;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 15px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

/* Other schedules button */
.btn-other-schedules {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.btn-other-schedules:hover {
    background: #c8e6c9;
}

.btn-full {
    width: 100%;
    justify-content: center;
    margin-top: 15px;
}

.actions {
    display: flex;
    gap: 12px;
    margin-top: 25px;
    flex-wrap: wrap;
}

/* Map Section */
.map-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-top: 10px;
}

.map-container {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 10px;
}

.map-container iframe {
    width: 100%;
    height: 300px;
    border: none;
}

/* Trailer */
.trailer-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin-top: 20px;
    border-radius: 12px;
}

.trailer-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

/* Desktop layout */
@media (min-width: 769px) {
    #calendar-container {
        max-width: 700px;
        margin: 30px auto 20px;
        padding: 0 24px;
    }
    
    #calendar-header {
        padding: 24px 32px;
    }
    
    #current-month {
        font-size: 1.5em;
    }
    
    .calendar-weekday {
        padding: 16px 8px;
        font-size: 1em;
    }
    
    .calendar-day {
        padding: 16px 8px;
        min-height: 60px;
    }
    
    .calendar-day .day-number {
        font-size: 1.2em;
    }
    
    #selected-date-display {
        max-width: 1400px;
        text-align: center;
    }
    
    main {
        max-width: 1400px;
        display: block;
        text-align: center;
        padding: 40px 20px;
    }
    
    .event-card {
        display: inline-block;
        vertical-align: top;
        width: 280px;
        margin: 10px;
        border-bottom: none;
        padding-bottom: 0;
        background: white;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        transition: all 0.3s ease;
    }
    
    .event-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    }
    
    .event-card .poster-container {
        width: 100%;
        height: 380px;
        position: relative;
    }

    .event-card {
        min-height: auto;
    }

    .event-card .info {
        padding: 16px;
        background: none;
        position: static;
    }

    .event-card h3 {
        font-size: 1.15em;
        margin-bottom: 4px;
        color: #1a1a1a;
        text-shadow: none;
        background: none;
        display: block;
        padding: 0;
        border-radius: 0;
    }

    .event-card .director {
        color: #444;
        background: none;
        display: block;
        padding: 0;
        border-radius: 0;
    }

    .event-card .subtitle {
        color: #666;
    }

    .event-card .director {
        color: #444;
    }

    .event-card .venue {
        color: #4a9a9e;
    }

    .event-card .showtime {
        color: #555;
    }

    .event-card .cinema-name {
        color: #2c3e50;
    }

    .event-card .price {
        color: #1a1a1a;
    }

    .event-card .price-from {
        color: #1a1a1a;
    }

    .event-card .price-venue {
        color: #666;
    }

    .event-card .next-label {
        color: #666;
    }

    .event-card .next-datetime {
        color: #1a1a1a;
    }

    .event-card .next-venue {
        color: #666;
    }
    
    .event-card .subtitle {
        font-size: 0.85em;
        margin-bottom: 6px;
    }
    
    .event-card .director {
        font-size: 0.8em;
        margin-bottom: 8px;
    }
    
    .event-card .cinemas-list {
        margin-top: 10px;
    }
    
    .event-card .cinema-line {
        padding: 8px 10px;
    }
    
    .event-card .next-showtime {
        margin-top: 10px;
        padding: 8px 10px;
    }

    #price-filter {
        max-width: 600px;
        margin: 15px auto 5px;
    }

    #calendar-container {
        max-width: 600px;
    }

    .event-card .price,
    .event-card .price-from {
        margin-top: 10px;
        font-size: 0.85em;
    }
    
    .share-circle-btn {
        width: 36px;
        height: 36px;
        top: 10px;
        right: 10px;
    }
    
    .share-circle-btn svg {
        width: 16px;
        height: 16px;
    }

    .event-card-long {
        display: inline-block;
        width: 280px;
        max-width: 280px;
        margin: 4px;
        padding: 0;
        text-align: left;
        box-shadow: none;
        border-radius: 0;
        background: transparent;
        border-bottom: 1px solid #eee;
        min-height: auto;
    }

    .event-card-long .info {
        display: flex;
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        gap: 6px;
        padding: 0;
        background: none;
        position: static;
        margin-top: 0;
        box-shadow: none;
    }

    .event-card-long h3 {
        font-size: 0.95em;
        display: inline;
        margin-right: 4px;
        font-weight: 600;
        width: auto;
        flex: 0 0 100%;
        color: #1a1a1a;
        text-shadow: none;
        background: none;
        padding: 0;
        border-radius: 0;
        word-wrap: break-word;
        overflow-wrap: break-word;
        word-break: break-word;
        line-height: 1.3;
    }

    .event-card-long .next-showtime {
        margin: 2px 8px 0;
        padding: 2px 8px;
        background: #f5f5f5;
        border-radius: 4px;
        font-size: 0.8em;
        width: calc(100% - 16px);
        flex: 0 0 auto;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }

    .event-card-long .next-showtime:hover {
        background: #e8e8e8;
    }

    .event-card-long .next-datetime {
        font-weight: 600;
        color: #444;
        margin-right: 4px;
    }

    .event-card-long .next-venue {
        color: #666;
        font-size: 0.9em;
        margin-right: 2px;
    }

    .event-card-long .price,
    .event-card-long .price-from,
    .event-card-long .price-venue {
        display: none;
    }
}


/* Responsive */
@media (max-width: 768px) {
    main {
        padding: 20px 15px;
        gap: 24px;
    }
    
    .event-card h3 {
        font-size: 1.3em;
    }
    
    .modal-header {
        height: 350px;
    }
    
    .modal-header h2 {
        font-size: 1.6em;
    }
    
    .modal-details {
        padding: 20px;
    }
    
    .actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .schedule-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .schedule-group {
        padding: 12px 14px;
    }
    
    .schedule-group .day-name {
        font-size: 0.95em;
    }
    
    .schedule-group .time-list {
        font-size: 1em;
    }
    
    .map-container iframe {
        height: 250px;
    }

    .meta-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .event-card-long {
        width: 100%;
        max-width: 600px;
        margin: 4px auto;
        border-radius: 0;
        padding: 0;
    }
}

@media (max-width: 480px) {
    .event-card h3 {
        font-size: 1.2em;
    }

    .meta-grid {
        grid-template-columns: 1fr;
    }
}
