.kinokassa-showtimes {
    max-width: 100%;
    margin: 0 auto;
}

.kinokassa-loader,
.kinokassa-no-shows,
.kinokassa-error {
    padding: 1.5em 1em;
    text-align: center;
    opacity: 0.7;
}

.kinokassa-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    margin-bottom: 1.5em;
    padding-bottom: 0.75em;
    border-bottom: 1px solid rgba(128,128,128,0.2);
}

.kinokassa-date-item {
    display: inline-block;
    padding: 0.4em 1em;
    border-radius: 4px;
    background: rgba(128,128,128,0.08);
    cursor: pointer;
    white-space: nowrap;
    font-size: 0.9em;
    transition: background 0.2s;
    user-select: none;
}

.kinokassa-date-item:hover {
    background: rgba(128,128,128,0.15);
}

.kinokassa-date-item.active {
    background: #b22222;
    color: #fff;
    font-weight: bold;
}

.kinokassa-date-item.empty-date {
    display: none;
}

.kinokassa-date-hidden {
    display: none;
}

.kinokassa-date-more {
    display: inline-block;
    padding: 0.4em 0.8em;
    font-size: 0.9em;
    color: #888;
    cursor: default;
}

.kinokassa-films {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.kinokassa-film-card {
    display: flex;
    align-items: stretch;
    position: relative;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 20px;
    padding-left: 0;
    margin: 0 0 0 20px;
    overflow: visible;
}

.film-poster-wrapper {
    position: relative;
    flex-shrink: 0;
    margin-left: -15px;
    width: 200px;
    min-width: 200px;
    cursor: pointer;
}

.film-poster-wrapper .film-poster {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.film-poster-wrapper .film-poster.no-image {
    background: rgba(128,128,128,0.05);
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.film-poster-wrapper .film-poster.no-image::before {
    content: "🎬";
    font-size: 2.5em;
    opacity: 0.25;
}

.film-poster-wrapper .film-age {
    position: absolute;
    top: 8px;
    left: 8px;
    color: #fff;
    font-size: 0.8em;
    font-weight: bold;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    line-height: 1;
    z-index: 2;
    padding: 0;
}

.film-age.age-red {
    background: #dc3545;
}

.film-age.age-blur {
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(4px);
}

.film-details {
    flex: 1;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.film-title {
    margin: 0 0 0.3em 0;
    font-size: 1.1em;
    font-weight: 600;
    color: inherit;
    line-height: 1.3;
    cursor: pointer;
}

.film-meta {
    font-size: 0.85em;
    opacity: 0.7;
    margin-bottom: 0.75em;
    color: inherit;
}

.film-showtimes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
}

.showtime-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 10px;
    padding: 8px 12px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
    border: 1px solid transparent;
    min-width: 70px;
    text-align: center;
}

.showtime-tile:hover {
    background: #eaeaea;
    border-color: #ddd;
    color: inherit;
    text-decoration: none;
}

.showtime-tile.disabled {
    cursor: not-allowed;
    opacity: 0.6;
    background: #f5f5f5;
}

.showtime-time {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 2px;
}

.showtime-price {
    font-size: 0.8em;
    color: #666;
    margin-bottom: 2px;
}

.showtime-hall {
    font-size: 0.75em;
    color: #888;
    text-transform: capitalize;
}

.showtime-no-booking {
    font-size: 0.75em;
    margin-top: 2px;
}

.kinokassa-skeleton-card {
    pointer-events: none;
}

.skeleton-poster {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
    min-height: 280px;
}

.skeleton-line {
    height: 1em;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 0.75em;
}

.skeleton-title {
    width: 70%;
    height: 1.2em;
}

.skeleton-meta {
    width: 50%;
}

.skeleton-showtimes {
    display: flex;
    gap: 8px;
    margin-top: 5px;
}

.skeleton-tile {
    width: 70px;
    height: 60px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 10px;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.kinokassa-no-shows-card {
    grid-column: 1 / -1;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 40px 20px;
    text-align: center;
    font-size: 1.1em;
    color: #666;
}

.kinokassa-no-shows-hint {
    display: block;
    font-size: 0.9em;
    color: #888;
    margin-top: 8px;
}

.kinokassa-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.kinokassa-modal {
    background: #fff;
    border-radius: 12px;
    max-width: 1000px;
    width: calc(100% - 40px);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    overflow: hidden;
}

.kinokassa-modal-scroll {
    overflow-y: auto;
    padding: 30px;
    flex: 1;
    border-radius: 12px;
}

.kinokassa-modal-close {
    position: absolute;
    top: 5px;
    right: 5px;
    background: none !important;
    border: none !important;
    outline: none !important;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    color: #666;
    transition: color 0.3s;
    z-index: 2;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none !important;
}

.kinokassa-modal-close:hover {
    color: #000;
    background: none !important;
    box-shadow: none !important;
}

.kinokassa-modal-close:focus {
    outline: none !important;
    background: none !important;
}

.kinokassa-modal-content {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.kinokassa-modal-left {
    flex: 0 0 200px;
    position: relative;
}

.kinokassa-modal-poster {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: block;
}

.kinokassa-modal-poster-age {
    position: absolute;
    top: 8px;
    left: 8px;
    color: #fff;
    font-size: 0.8em;
    font-weight: bold;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    line-height: 1;
    z-index: 2;
    padding: 0;
}

.kinokassa-modal-poster-age.age-red {
    background: #dc3545;
}

.kinokassa-modal-poster-age.age-blur {
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(4px);
}

.kinokassa-modal-right {
    flex: 1;
    min-width: 0;
}

.kinokassa-modal-title {
    margin: 0 0 10px;
    font-size: 1.6em;
    line-height: 1.3;
}

.kinokassa-modal-info-line {
    margin-bottom: 6px;
    font-size: 0.95em;
}

.kinokassa-modal-description {
    margin-top: 15px;
    font-size: 0.95em;
    line-height: 1.5;
    color: #444;
}

.kinokassa-trailer {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    background: #000;
}

.kinokassa-modal-schedule {
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-top: 20px;
}

.kinokassa-modal-schedule h3 {
    margin-bottom: 15px;
}

.kinokassa-modal-date-group {
    margin-bottom: 18px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 15px;
}

.kinokassa-modal-date-title {
    font-size: 1em;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.kinokassa-modal-showtimes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.modal-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
    margin-bottom: 15px;
}

.modal-skeleton-poster {
    width: 200px;
    height: 280px;
}

.modal-skeleton-title {
    width: 60%;
    height: 1.5em;
}

.modal-skeleton-line {
    height: 1em;
    width: 100%;
    margin-bottom: 8px;
}

.modal-skeleton-description {
    width: 100%;
    height: 4em;
    margin-top: 15px;
}

.modal-skeleton-trailer {
    width: 100%;
    height: 300px;
    margin-bottom: 20px;
}

.modal-skeleton-schedule-title {
    width: 40%;
    height: 1.2em;
    margin-bottom: 20px;
}

.modal-skeleton-date-group {
    width: 100%;
    height: 80px;
    margin-bottom: 15px;
}

.kinokassa-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 99997;
    display: none;
}

.kinokassa-mobile-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80%;
    background: #fff;
    border-radius: 16px 16px 0 0;
    z-index: 99998;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
    touch-action: pan-y;
}

.kinokassa-mobile-panel.active {
    transform: translateY(0);
}

.kinokassa-mobile-handle {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px;
    cursor: grab;
}

.kinokassa-mobile-handle-bar {
    width: 40px;
    height: 4px;
    background: #ccc;
    border-radius: 2px;
}

.kinokassa-mobile-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none !important;
    border: none !important;
    font-size: 28px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    z-index: 2;
    box-shadow: none !important;
}

.kinokassa-mobile-close:focus {
    outline: none !important;
}

.kinokassa-mobile-panel .kinokassa-modal-scroll {
    padding: 0 20px 20px;
    flex: 1;
    overflow-y: auto;
}

.kinokassa-mobile-panel .kinokassa-modal-content {
    flex-direction: column;
}

.kinokassa-mobile-panel .kinokassa-modal-left {
    margin: 0 auto 15px;
    width: 60%;
    position: relative;
}

@media (max-width: 900px) {
    .kinokassa-films {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .kinokassa-film-card {
        flex-direction: column;
        padding: 10px;
        margin: 0;
    }
    
    .film-poster-wrapper {
        margin-left: 0;
        margin-top: 0;
        margin-bottom: 0;
        width: 100%;
        min-width: 0;
        margin-bottom: 10px;
    }
    
    .film-poster-wrapper .film-poster {
        border-radius: 8px;
        max-height: 400px;
        width: 100%;
    }
    
    .film-poster-wrapper .film-poster.no-image {
        min-height: 200px;
    }
    
    .film-details {
        padding-left: 0;
    }
}