main{margin-bottom: 140px;}
main{padding: 0 var(--padding-x); height: 100%; margin-top: 20px;}

/* ********************calender***************************** */
.calendar-table table{margin-bottom: 80px;}

.calendar-table .calendar-header{
    width: 400px; 
    margin: 0 auto;
    margin-bottom: 30px;
    color: #f3f3f3;
    position: relative;
}
.calendar-table .calendar-header .nav-group{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}
#todayBtn{
    display: inline-block;
    position: absolute;
    right: 0; top: 50%;
    transform: translateY(-50%);
    
}
.calendar-table .calendar-header .nav-group h2{
    margin: 0;
    text-align: center;
    font-size: 30px;
}
.calendar-table .calendar-header .nav-group button{
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
}
#todayBtn{background: #C71607; border-radius: 5px;}
.calendar-table{margin: 30px 0 0 0; text-align: center;}
.calendar-table table{border-collapse: collapse; width: 100%;}
.calendar-table th, td{border: 1px solid #f3f3f3; padding: 10px; background: #f3f3f333;}
.calendar-table th{background: #121212; color: #f3f3f3; border: none;}
.calendar-table .sunday{color: #ff1e00;}
.calendar-table .saturday{color: #005eff;}
.calendar-table td{ 
    width: 14.29%; height: 134px;
    vertical-align: top; text-align: left;
}
.calendar-table tr:first-child{border-bottom: 4px solid #f3f3f3;}
.calendar-table td:first-child{border-left: none;}
.calendar-table td:last-child{border-right: none;}
.calendar-table .movie{font-size: 12px; margin: 2px 0;}
.calendar-table .nav{margin: 10px; font-size: 30px;}
.calendar-table button{padding: 5px 10px; margin: 0 5px; cursor: pointer;}
#monthTitle{font-size: 30px;}
/* 저번달과 다음달 숫자 회색 */
.calendar-table td.prev-month,
.calendar-table td.next-month {color: #727272; font-weight: bold;}
.calendar-table td.today {background: #FE6C54;}

#calendarToggleBtn {
  display: inline-block;
  background: #C71607;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 8px 16px;
  margin-bottom: 15px;
  cursor: pointer;
  font-size: 16px;
}

/* *********************timetable*************************** */
.timetable{
    width: 100%;
    margin: 0 auto;
    margin-top: 40px;
    margin-bottom: 80px;
    font-weight: 600;
    color: #1e1e1e;
}
.timetable .date{
    display: flex;
    justify-content: space-between;
}
.timetable .date-selector button{
    margin-right: 10px;
    padding: 8px 12px;
    border: none;
    background: #727272;
    border-radius: 5px;
}
.timetable .date-selector button.active{
    background: #C71607;
    color: #f3f3f3;
}
.timetable .calender-icon{
    cursor: pointer;
    border: 2px solid #f3f3f3;
    color: #f3f3f3;
    padding: 8px 12px;
    border-radius: 5px;
}
.timetable .calender-icon span{margin-left: 10px;}
.timetable .calender-icon:hover{
    color: #C71607;
    border: 2px solid #C71607;
}

.timetable .movie-schedule .times{margin-bottom: 10px;}
.timetable .times button{
    margin: 5px;
    padding: 8px 14px;
    border-radius: 5px;
    background: #1e1e1e;
    cursor: pointer;
}
.timetable .times button:hover{
    background: #C71607;
    color: #fff;
    border-color: #C71607;
}

.timetable .schedule h2{
    font-size: 28px;
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid #FE6C54;
    padding-bottom: 5px;
    color: #FE6C54;
}

[data-date="2025-10-03"] .indie-title {display: none;}

/* 영화 카드 */
.timetable .movie-schedule{
    border-radius: 15px;
    padding: 15px 20px;
    margin-bottom: 20px;
    background-color: #f3f3f3;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.timetable .movie-schedule h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #1e1e1e;
}

/* 상영관 정보 */
.movie-schedule p {
    font-size: 1rem;
    margin: 8px 0 5px 0;
    font-weight: 500;
}

/* 상영 시간 버튼 컨테이너 */
.times {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

/* 상영 시간 버튼 */
.times button {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    background-color: #ff6b6b;
    color: #fff;
    cursor: pointer;
    font-weight: 500;
    transition: 0.2s;
}

.times button:hover {
    background-color: #ff3b3b;
    transform: scale(1.05);
}

.cgv-schedule .movie-schedule {
    border-left: 5px solid #ff0d01;
}
.mega-schedule .movie-schedule {
    border-left: 5px solid #5c2d91;
}
.lotte-schedule .movie-schedule {
    border-left: 5px solid #da291c;
}
.indie-schedule .movie-schedule{
    border-left: 5px solid #fde800;
}

.calender-section {
  display: none;
  margin-top: 20px;
  padding: 20px;
  background: #f8f8f8;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.calender-section iframe {
  width: 100%;
  height: 600px;
  border: none;
  border-radius: 10px;
}

/* 표시/숨김 토글용 */
.calender-section.active {
  display: block;
}

.calender-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

#closecalenderBtn {
  background: #ff4d4d;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
}

#closecalenderBtn:hover {
  background: #ff1a1a;
}

.timetable-events{
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    margin-top: 15px;
}

/* ***********************반응형****************************** */
@media screen and (max-width: 1600px){
    main{margin-top: 120px;}
    .calendar-table td {width: 14.29%; height: 130px;}
}

@media screen and (max-width: 1200px){
    .times button{
    padding: 5px 10px;
    font-size: 0.9rem;
    }
    .timetable .date{
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    .timetable .date-selector button{
        margin-bottom: 10px;
    }
}

@media screen and (max-width: 768px){
    .calendar-table td {width: 14.29%; height: 110px;}
    .calendar-table .calendar-header{width: 370px;}
    .calendar-table .calendar-header .nav-group h2{font-size: 26px;}
    #monthTitle{font-size: 26px;}
    #todayBtn{font-size: 14px;}

    .times{gap: 6px;}
    .movie-schedule{padding: 12px 15px;}
    .schedule h2{font-size: 1.5rem;}
    .movie-schedule h3{font-size: 1.1rem;}
}

@media screen and (max-width: 575px){
    #calendarToggleBtn{font-size: 12px;}

    .calendar-header #prevMonth, #nextMonth{font-size: 20px;}
    .calendar-header #monthTitle{font-size: 20px;}
    .calendar-header #todayBtn{
        font-size: 12px;
        right: 30px;
    }
    .calendar-table table td data{font-size: 10px;}
    .calendar-table table td{
        height: 60px;
        font-size: 10px;
    }
    .calender-section{
        font-size: 10px;
    }

    .date-selector button{font-size: 9px;}

    .timetable .schedule h2{font-size: 20px;}
    .schedule .movie-schedule h3{font-size: 16px;}
    .schedule .movie-schedule p{font-size: 14px;}
    .schedule .movie-schedule .times button{font-size: 10px;}
}