/* Cinema Internal Blocks Styles */
.cinema-internal-blocks {
    margin: 2.5rem 0;
    padding: 0;
}

.cinema-other-locations-block,
.cinema-popular-theaters-block {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.cinema-other-locations-block h2,
.cinema-popular-theaters-block h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    margin-top: 0;
    color: #1e293b;
    line-height: 1.3;
}

.cinema-locations-list,
.cinema-theaters-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.625rem;
}

.cinema-locations-list li,
.cinema-theaters-list li {
    margin: 0;
}

.cinema-locations-list a,
.cinema-theaters-list a {
    display: block;
    padding: 0.625rem 0.875rem;
    background: #ffffff;
    border-radius: 8px;
    text-decoration: none;
    color: #334155;
    font-weight: 500;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
    font-size: 0.875rem;
    line-height: 1.4;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.cinema-locations-list a:hover,
.cinema-theaters-list a:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: #1e293b;
}

@media (max-width: 767px) {
    .cinema-locations-list,
    .cinema-theaters-list {
        grid-template-columns: 1fr;
    }
    
    .cinema-other-locations-block,
    .cinema-popular-theaters-block {
        padding: 1.25rem;
    }
    
    .cinema-other-locations-block h2,
    .cinema-popular-theaters-block h2 {
        font-size: 1.25rem;
    }
}

/* Improved Table Styles for Cinema Posts - Унифицированные стили для всех таблиц */
.cinema-internal-blocks table,
.entry-content table,
.post-content table,
.single-post table,
article table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 1.5rem 0 !important;
    background: #ffffff !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
    font-size: 0.9375rem !important;
    line-height: 1.6 !important;
    border: 1px solid #e2e8f0 !important;
}

.cinema-internal-blocks table thead,
.entry-content table thead,
.post-content table thead,
.single-post table thead,
article table thead {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%) !important;
    color: #ffffff !important;
}

.cinema-internal-blocks table th,
.entry-content table th,
.post-content table th,
.single-post table th,
article table th {
    padding: 1rem 1.25rem !important;
    text-align: left !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    font-size: 0.95rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1) !important;
}

.cinema-internal-blocks table td,
.entry-content table td,
.post-content table td,
.single-post table td,
article table td {
    padding: 0.875rem 1.25rem !important;
    border-bottom: 1px solid #f0f0f0 !important;
    color: #334155 !important;
    transition: all 0.2s ease !important;
}

.cinema-internal-blocks table tbody tr:last-child td,
.entry-content table tbody tr:last-child td,
.post-content table tbody tr:last-child td,
.single-post table tbody tr:last-child td,
article table tbody tr:last-child td {
    border-bottom: none !important;
}

.cinema-internal-blocks table tbody tr:hover,
.entry-content table tbody tr:hover,
.post-content table tbody tr:hover,
.single-post table tbody tr:hover,
article table tbody tr:hover {
    background: linear-gradient(90deg, #f8f9ff 0%, #ffffff 100%) !important;
    transform: scale(1.01) !important;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.1) !important;
}

.cinema-internal-blocks table tbody tr:hover td,
.entry-content table tbody tr:hover td,
.post-content table tbody tr:hover td,
.single-post table tbody tr:hover td,
article table tbody tr:hover td {
    color: #667eea !important;
    font-weight: 500 !important;
}

.cinema-internal-blocks table tbody tr:nth-child(even),
.entry-content table tbody tr:nth-child(even),
.post-content table tbody tr:nth-child(even),
.single-post table tbody tr:nth-child(even),
article table tbody tr:nth-child(even) {
    background-color: #fafafa !important;
}

.cinema-internal-blocks table tbody tr:nth-child(even):hover,
.entry-content table tbody tr:nth-child(even):hover,
.post-content table tbody tr:nth-child(even):hover,
.single-post table tbody tr:nth-child(even):hover,
article table tbody tr:nth-child(even):hover {
    background: linear-gradient(90deg, #f0f4ff 0%, #fafafa 100%) !important;
}

/* Выделение колонки с ценами */
.cinema-internal-blocks table td:last-child,
.entry-content table td:last-child,
.post-content table td:last-child,
.single-post table td:last-child,
article table td:last-child,
.cinema-internal-blocks table th:last-child,
.entry-content table th:last-child,
.post-content table th:last-child,
.single-post table th:last-child,
article table th:last-child {
    font-weight: 600 !important;
    color: #667eea !important;
    text-align: right !important;
}

.cinema-internal-blocks table tbody tr:hover td:last-child,
.entry-content table tbody tr:hover td:last-child,
.post-content table tbody tr:hover td:last-child,
.single-post table tbody tr:hover td:last-child,
article table tbody tr:hover td:last-child {
    color: #764ba2 !important;
    font-size: 1.05em !important;
}

@media (max-width: 767px) {
    .cinema-internal-blocks table,
    .entry-content table,
    .post-content table {
        font-size: 0.875rem;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .cinema-internal-blocks table th,
    .cinema-internal-blocks table td,
    .entry-content table th,
    .entry-content table td,
    .post-content table th,
    .post-content table td {
        padding: 0.625rem 0.75rem;
        white-space: nowrap;
    }
}

