/* Layout Container */
.movie-container {
    width: 100%;
    margin: 0 auto 40px;
    background: #ffffff;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

/* Header Section */
.movie-header {
    padding: 30px 24px;
    background: linear-gradient(135deg, #db1e62 0%, #b91a4f 100%);
    color: white;
}

.title-section {
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -1px;
}

.breadcrumb {
    font-size: 14px;
    opacity: 0.9;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
    opacity: 0.8;
}

/* Content Section */
.movie-content-wrapper {
    width: 781px;
    margin: 40px auto;
    padding: 0 24px;
}

.guide-title {
    width: 100%;
    border-bottom: 1px solid #6c757d;
    font-size: 20px;
    font-weight: 500;
    padding: 0 0 5px;
    margin-bottom: 20px;
}

/* Tab Menu */
.tab-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 30px;
}

.tab-menu {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.tab-item {
    flex: 1;
    max-width: 200px;
    height: 60px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    color: #6c757d;
    transition: all 0.3s ease;
    position: relative;
}

.tab-item:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #495057;
}

.tab-item.active {
    background: linear-gradient(135deg, #db1e62 0%, #b91a4f 100%);
    color: white;
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
}

/* Movie Content */
.movie-content {
    padding: 30px;
    min-height: 400px;
}

.movie-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
}

.movie-item {
    flex: 0 0 calc(25% - 15px);
    width: 165px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.movie-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.movie-poster {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f8f9fa;
}

.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.movie-item:hover .movie-poster img {
    transform: scale(1.05);
}

.movie-info {
    padding: 15px;
    text-align: center;
}

.movie-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    height: 36px;
}

.movie-detail {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

.movie-detail-poster {
    flex: 0 0 150px;
}

.movie-detail-poster img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.movie-detail-info {
    flex: 1;
    max-width: 432px;
}

.movie-detail-info img {
  width: 100%;
}

.movie-detail-info * {
  font-family: 'Pretendard', 'Noto Sans KR', sans-serif!important;
}

.movie-detail-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.movie-detail-content {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
}

.no-contents {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
}

.empty-state {
    text-align: center;
}

.empty-state img {
    max-width: 120px;
    opacity: 0.7;
    margin-bottom: 20px;
}

.empty-message {
    font-size: 16px;
    color: #6c757d;
    font-weight: 500;
    margin: 0;
}

.guide-bottom {
    margin: 40px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.guide-bottom img {
    width: 100%;
    height: auto;
    display: block;
}

.booking-section {
    text-align: center;
    padding: 40px 0;
    background: #f8f9fa;
}

.booking-btn {
    display: inline-block;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
    background-color: #b91a4f;
    padding: 15px 60px;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
}

.booking-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.booking-btn img {
    display: block;
}

/* Hidden state for tab content */
.movie-table {
    display: none;
}

.movie-table.active {
    display: block;
}

/* Additional styles for semantic elements */
article {
    position: relative;
}

.movie-item h3,
.movie-detail h3 {
    margin: 0;
}

/* Loading animation for better UX */
.movie-poster img,
.movie-detail-poster img {
    transition: opacity 0.3s ease;
}

.movie-poster img:not([src]),
.movie-detail-poster img:not([src]) {
    opacity: 0;
}

/* Enhanced hover effects */
.movie-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
    pointer-events: none;
}

.movie-item:hover::before {
    opacity: 1;
}