:root{
    --live-indicator-shadow: hsla(0, 79%, 63%, .5);
    --rich-blank-fogra-30: #1E1E1E;
    --rich-blank-fogra-29: #121212;
    --live-indicator: #FE6C54;
    --oxford-blue-50: #727272;
    --oxford-blue: #1E1E1E;
    --light-azure: #C71607;
    --off-white: #f3f3f3;
    --yellow: #FDE800;
    --white: #ffffff;
    --azure: #DE3722;

    --font-family: 'Pretendard', sans-serif;

    --section-heading: 40px;
    --font-size-large: 22px;
    --font-size-medium: 17px;
    --font-size-small: 14px;
    --font-size-extra-small: 12px;

    --fw7: 700;
    --fw6: 600;
    --fw5: 500;
    --fw4: 400;

    --padding-x: 300px;
}

*, html{margin: 0; padding: 0; box-sizing: border-box; border: none; outline: none;}
*{transition: all .5s ease;}
*, *::before, *::after {box-sizing: border-box;}
html{font-family: var(--font-family);}

h1, h2, h3, h4, h5, h6 {color: var(--white);}

body{
    background: var(--rich-blank-fogra-29);
    color: var(--off-white);
    -webkit-font-smoothing: antialiased;
    font-family: 'Pretendard', sans-serif;
}

img{
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
    object-fit: cover;
}

input, button, select{
    font: inherit;
    background: none;
    border: none;
    outline: none;
}

button{
    color: var(--off-white);
    cursor: pointer;
}

li{list-style: none;}

a{
    text-decoration: none;
    display: block;
    color: var(--off-white);
}

::-webkit-scrollbar{
    background: transparent;
    border-left: 1px solid var(--oxford-blue);
}

::-webkit-scrollbar-thumb{
    background: var(--light-azure);
    border-radius: 5em;
    border: 3px solid var(--rich-blank-fogra-29);
}

header, nav{background: var(--rich-blank-fogra-29);}

.container{
    max-width: 1920px;
    margin: auto;
}

.navbar, .banner, .movies, .category{padding: 0 var(--padding-x);}

.section-heading{
    font-size: var(--section-heading);
    font-weight: var(--fw5);
    margin-bottom: 40px;
}

/* ***********************header**************************** */
.navbar{
    height: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-menu-btn{display: none;}

.navbar-brand{width: 10%; height: auto;}
.navbar-brand .logo{width: 100%; object-fit: cover;}

/* nav{margin-right: 400px;} */

.navbar-nav{display: flex;}
.navbar-nav li:not(:last-child){margin-right: 60px;}

.navbar-link{
    font-size: var(--font-size-small);
    font-weight: var(--fw5);
}
.navbar-link:hover{color: var(--light-azure);}

.indicator{position: relative;}
.indicator::after{
    content: '';
    background: var(--live-indicator);
    position: absolute;
    top: calc(50% - 2px);
    right: -15px;
    width: 4px;
    height: 4px;
    box-shadow: 0 0 0 2px var(--live-indicator-shadow);
    border-radius: 50%;
    transition: 0.3s;
}

.navbar-nav li::after{
    content: '';
    width: 0%;
    height: 2px;
    background: var(--light-azure);

    display: block;
    transition: 0.5s;
    margin-top: 6px;
}

.navbar-nav li:hover::after{width: 100%;}

.navbar-actions{
    display: flex;
    align-items: center;
}

.navbar-form{
    position: relative;
    margin-right: 50px;
}

.navbar-form-search{
    background: var(--oxford-blue);
    width: 100%;
    padding: 12px 16px;
    border-radius: 50px;
    color: var(--off-white);
    font-size: var(--font-size-small);
    font-weight: var(--fw5);
}

.navbar-form-btn{
    background: var(--oxford-blue);
    position: absolute;
    top: calc(50% - 10px);
    right: 10px;
}

.navbar-form-btn ion-icon, .navbar-search-btn ion-icon{
    font-size: 20px;
    color: var(--light-azure);
    --ionicon-stroke-width: 50px;
}

.navbar-form-btn:hover ion-icon, .navbar-form-search::placeholder{
    color: var(--off-white);
}

.navbar-form-close, .navbar-search-btn{display: none;}

.navbar-signin{
    display: flex;
    align-items: center;
    font-size: var(--font-size-small);
}

.navbar-signin ion-icon{
    font-size: 22px;
    color: var(--light-azure);
    margin-left: 5px;
    --ionicon-stroke-width: 30px;
}

.navbar-signin:hover span{color: var(--light-azure);}

/* ***********************login***************************** */
.login-area {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin: auto;
	display: none;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 99;
	padding: 0 15px;
    font-weight: 500;
}

.login-box {
    max-width: 380px;
    height: 510px;
    background: #fff;
    position: relative;
    color: #1e1e1e;
    margin: 200px auto 0;
    padding: 40px 25px 25px;
}

.login-box a {
    color: #1e1e1e;
}

.login-box > a {
    position: absolute;
    right: 0;
    top: 0;
    background: #DE3722;
    font-size: 22px;
    color: #fff;
    width: 35px;
    height: 35px;
    text-align: center;
    line-height: 40px;
}

.login-box h2 {
    text-align: center;
    color: #1e1e1e;
    margin-bottom: 25px;
}

.login-box h6 {
    color: #1e1e1e;
    margin-bottom: 12px;
    font-size: 15px;
}

.login-box form > input {
    width: 330px;
    padding: 8px 10px;
    border-radius: 5px;
    margin-bottom: 20px;
	background: transparent;
	border: 1px solid #ddd;
}

.login-signup {
    float: right; cursor: pointer;
}
.login-signup:hover{color: #DE3722;}

.login-remember {
    float: left;
}

.login-box form .theme-btn {
    padding: 10px;
    background: #DE3722;
    border-radius: 5px;
	color: #fff;
	text-align: center;
    margin-top: 40px;
}

.login-box form .theme-btn + span {
    margin: 22px 0;
    display: block;
}

.login-box form .social-txt{font-size: 14px;}

.login-social {
    display: flex;
    justify-content: space-between;
}

.login-social a i {
    width: 45px;
    display: inline-block;
    height: 45px;
    font-size: 20px;
    line-height: 45px;
    color: #fff;
    background: #3a559f;
    border-radius: 5px;
    text-align: center;
}
.login-social a { /* 이미지를 위한 것 */
    width: 45px; height: 45px;
    display: inline-block;
}
.login-social a i.fa-twitter {
    background: #50abf1;
}
.login-social a .kakao {
    padding: 8px;
    background: #ffe812;
    border-radius: 5px;
}
.login-social a .naver {
    width: 100%;
    object-fit: cover;
    padding: 6px;
    background: #03cf5d;
    border-radius: 5px;
}
.login-social a i.fa-google-plus-g {
    background: #ea4335;
}

/* ***********************banner**************************** */
.banner{margin-bottom: 40px;}

/* 슬라이드 */
.banner .swiper {
    width: 100%;
    max-width: 1800px;
    height: 400px;
    margin: 0 auto;
    border-radius: 15px;
}

.banner .swiper-slide {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
    /* will-change: transform; */
}

.banner .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    /* user-select: none;
    -webkit-user-drag: none; */
}

.swiper {
    margin-left: auto;
    margin-right: auto;
    --swiper-theme-color: #fff;
    --swiper-pagination-bullet-size: 8px;
    --swiper-pagination-bullet-inactive-color: #b0b0b0;
    --swiper-pagination-bullet-inactive-opacity: 0.4;
    --swiper-navigation-color: #ffffff;
}

/* ***********************movies**************************** */
.movies{margin-bottom: 80px;}

.filter-bar{
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--oxford-blue);
    padding: 16px 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    font-weight: 600;
}

/* 상영 시기 버튼 */
.status-tabs {
    display: flex;
    gap: 14px;
}
.status-btn {
    padding: 8px 14px;
    border: none;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.status-btn:hover {
    background: #b0b0b0;
}

.status-btn.active {
    background: #C71607;
    color: #fff;
    box-shadow: 0 4px 10px rgba(107, 0, 0, 0.3);
}

/* 컨테이너 */
.filter-radios{
    position: relative;
    background: var(--rich-blank-fogra-29);
    padding: 5px;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    user-select: none;
}

/* 라디오 숨기기 (접근성 유지) */
.filter-radios input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* 라벨(버튼) */
.filter-radios label {
    position: relative;
    z-index: 2;
    padding: 8px 20px;
    border-radius: 10px;
    cursor: pointer;
}

.filter-radios input:checked + label, .filter-radios label:hover {color: var(--light-azure);}

input ~ .checked-radio-bg{
    --width: 80px;
    --left: 5px;

    background: var(--oxford-blue);
    position: absolute;
    top: 5px;
    left: var(--left);
    bottom: 5px;
    width: var(--width);
    border-radius: 10px;
}

#popular:checked ~ .checked-radio-bg{ 
    --width: 80px;
    --left: 76px;
}
#newest:checked ~ .checked-radio-bg{
    --width: 80px;
    --left: 148px;
}

.movies-grid{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.movie-card{
    --scale: .8;
    cursor: pointer;
}

.movie-card .card-head{
    position: relative;
    height: 250px;
    border-radius: 15px;
    margin-bottom: 15px;
    overflow: hidden;
}

.movie-card:hover .card-img{transform: scale(1.1);}
.movie-card .card-overlay{
    width: 101%;
    position: absolute;
    inset: 0;
    opacity: 0;
    backdrop-filter: blur(5px);
}
.movie-card:hover .card-overlay{opacity: 1;}

.movie-card .bookmark, .movie-card .rating{
    position: absolute;
    top: 15px;
    padding: 6px;
    border-radius: 50%;
    color: var(--off-white);
    transform: scale(var(--scale));
}
.movie-card .bookmark{
    background: var(--oxford-blue);
    left: 15px;
}
    .movie-card .bookmark:hover{color: var(--light-azure);}
.movie-card .rating.green{
    display: flex;
    align-items: center;
    right: 15px;
    background: #00964b;
}
.movie-card .rating.yellow{
    display: flex;
    align-items: center;
    right: 15px;
    background: #eabc00;
}
.movie-card .rating.orange{
    display: flex;
    align-items: center;
    right: 15px;
    background: #dc7317;
}
.movie-card .rating.red{
    display: flex;
    align-items: center;
    right: 15px;
    background: #d92c35;
}
.movie-card .rating span{
    color: var(--white);
    font-size: 13px;
    font-weight: var(--fw6);
}
    
.movie-card ion-icon{
    font-size: 16px;
    display: block;
    --ionicon-stroke-width: 50px;
}
.movie-card .play{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(var(--scale));
}
.movie-card .play ion-icon{
    font-size: 60px;
    --ionicon-stroke-width: 20px;
}
.movie-card:hover :is(.bookmark, .rating, .play){ --scale: 1;}

.movie-card .release-date{
    position: absolute;
    top: 88%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    text-align: center;
    font-weight: 600;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}
.movie-card .card-title{
    font-size: var(--font-size-medium);
    font-weight: var(--fw5);
    margin-bottom: 5px;
    text-align: center;
}
.movie-card:hover .card-title{color: var(--light-azure);}

.load-more{
    background: var(--oxford-blue);
    display: block;
    padding: 20px 50px;
    margin: auto;
    font-size: var(--font-size-small);
    font-weight: var(--fw5);
    border-radius: 15px;
    color: var(--white);
}
.load-more:hover{background: var(--light-azure);}

/* ***********************category************************** */
.category{margin-bottom: 140px;}
.category-grid{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.category-card{
    position: relative;
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
}
.category-card .card-img{
    width: 100%;
    object-fit: cover;
}
.category-card:hover .card-img{
   filter: grayscale(0.6);
   transition: 0.3s;
}
.category-card::after{
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 20%, #000a);
}
.category-card .name, .category-card .total{
    position: absolute;
    bottom: 20px;
    color: var(--white);
    z-index: 20;
}
.category-card .name{
    left: 20px;
    font-size: 20px;
}
.category-card:hover .name{
    color: var(--light-azure);
    transition: 0.3s;
}
.category-card .total{
    right: 20px;
    font-size: 18px;
    background: var(--oxford-blue-50);
    padding: 5px 8px;
    border-radius: 6px;
}

/* ***********************footer**************************** */
footer{
    background: var(--rich-blank-fogra-30);
    padding: 40px var(--padding-x) 40px;
}

.footer-content{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-bottom: 1px solid var(--oxford-blue-50);
    padding-bottom: 40px;
}

.footer-brand{
    max-width: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.footer-logo{
    width: 200px;
    margin-bottom: 20px;
}

.slogan{
    font-size: var(--font-size-small);
    line-height: 20px;
    margin-bottom: 40px;
}

.footer-links{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.footer-links ul{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 40px;
}

.link-item{ font-size: var(--font-size-small); margin: 0 10px;}

.link-item:not(:last-child) { margin-bottom: 10px;}
.link-item:hover a{color: var(--light-azure);}

.footer-copyright{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
}

.footer-copyright p{ font-size: var(--font-size-small);}

.footer-copyright .social-links a{
    font-size: var(--font-size-medium);
    margin-bottom: 10px;
}
.social-links a:hover { color: var(--light-azure);}
.social-links a:not(:last-child) { margin-right: 30px;}

.social-links{ display: flex; justify-content: space-between;}

/* ********************scrolltotop************************** */
#scrollToTopBtn {
    /* 화면 고정 */
    position: fixed; 
    bottom: 20px;
    right: 30px;
    
    /* 기본 스타일 */
    z-index: 99;
    color: #b0b0b0;
    cursor: pointer;
    font-size: 30px;
    opacity: 0.7;
    transition: opacity 0.3s;
    display: none;
}

#scrollToTopBtn:hover {
    color: #C71607;
    opacity: 1;
}

/* ***********************반응형**************************** */
@media screen and (max-width: 1600px){
    :root{--padding-x: 80px;}

    header{
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        overflow: hidden;
        z-index: 50;
    }

    header.active{top: 260px;}

    .navbar-menu-btn{
        display: block;
        position: absolute;
        top: 50%;
        left: var(--padding-x);
        transform: translateY(-50%);
    }
    
    .navbar-menu-btn span{
        display: block;
        background: var(--off-white);
        width: 25px;
        height: 2px;
        margin: 8px;
    }
        
    .navbar-menu-btn.active span{ background: var(--light-azure);}

    .navbar-menu-btn .two {width: 20px;}
    .navbar-menu-btn .three{ width: 15px;}

    .navbar-menu-btn.active .one{ transform: rotate(45deg) translateY(14px);}
    .navbar-menu-btn.active .two{ width: 0;}
    .navbar-menu-btn.active .three{
        width: 25px;
        transform: rotate(-45deg) translateY(-14px);
    }

    .navbar-brand{margin-left: 50px; width: 100px; height: auto;}
    .navbar-brand .logo{width: 100%; height: auto; object-fit: cover;}

    nav{
        position: fixed;
        top: -300px;
        left: 0;
        width: 100%;
        z-index: 100;
    }

    nav.active{top: 0px;}

    .navbar-nav{
        height: 270px;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding-left: var(--padding-x);
        border-bottom: 1px solid var(--oxford-blue);
    }

    .navbar-nav li:not(:last-child){
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .navbar-form{
        position: absolute;
        top: 100%;
        left: var(--padding-x);
        right: var(--padding-x);
        height: 100%;
        background: var(--rich-blank-fogra-29);
        margin-right: 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        z-index: 100;
    }

    .navbar-form.active{top: 0;}
    
    .navbar-form-search{margin-right: 40px;}

    .navbar-form-btn{right: 80px;}

    .navbar-form-close{
        display: block;
        padding-top: 4px;
        opacity: .8;
    }

    .navbar-form-close:hover{opacity: 1;}

    .navbar-form-close ion-icon{
        font-size: 30px;
        color: var(--light-azure);
    }

    .navbar-search-btn{
        display: block;
        margin-right: 100px;
        padding-top: 5px;
    }

    .banner{margin-top: 100px;}

    .category-grid{grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));}

    .category-card .name, .category-card .total{bottom: 16px;}

    .category-card .name{font-size: 16px;}

    .category-card .total{font-size: 14px;}

    .footer-content{flex-direction: column;}

    .footer-brand{
        margin-right: 0;
    }

    .footer-links{grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));}
}

@media screen and (max-width: 1200px){
    :root{
        --padding-x: 60px;
    }

    .banner-card .card-content{
        bottom: 40px;
        left: 60px;
        right: 60px;
    }

    .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;
    }

    .category-card .name, .category-card .total{bottom: 14px;}
}

@media screen and (max-width: 767px){
    :root{
        --padding-x: 40px;
    }

    body{
        padding-top: 100px;
    }

    .banner{
        display: none;
    }

    .movies{
        display: block;
        margin-top: 20px;
        margin-bottom: 60px;
    }

    .filter-bar{
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin-bottom: 30px;
        padding: 15px;
    }

    .status-tabs{
        display: flex;
        width: 100%;
        justify-content: center;
        gap: 10px;
    }

    .filter-radios{
        display: flex;
        width: 100%;
        justify-content: center;
    }

    .movies-grid{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* !important 제거! */
    .movie-card{
        display: block;
        opacity: 1;
        visibility: visible;
    }

    .movie-card .card-head{
        height: 250px;
        border-radius: 12px;
    }

    .movie-card .card-body .card-title{
        font-size: 14px;
        margin-top: 10px;
    }

    .movie-card .bookmark,
    .movie-card .rating{
        padding: 5px;
    }

    .movie-card .rating span{
        font-size: 12px;
    }

    .movie-card .release-date{
        font-size: 12px;
    }

    .movies .load-more{
        font-size: 12px;
        padding: 15px 40px;
    }

    .category{
        margin-bottom: 80px;
    }

    .category-card .name, 
    .category-card .total{
        bottom: 12px;
    }

    .category-card .name{
        font-size: 16px;
    }
    
    .category-card .total{
        font-size: 14px;
    }
}

@media screen and (max-width: 575px){
    :root{
        --padding-x: 20px;
        --section-heading: 32px;
        --font-size-large: 16px;
    }

    body{
        padding-top: 100px;
    }

    .navbar-search-btn{
        margin-right: 20px;
    }

    .navbar-form-search{
        margin-right: 20px;
    }

    .navbar-form-btn{
        right: 55px;
    }

    .movies{
        display: block;
        margin-top: 20px;
        margin-bottom: 60px;
    }

    .filter-bar{
        display: flex;
        flex-direction: column;
        font-size: 11px;
        padding: 12px;
        gap: 12px;
    }

    .status-tabs{
        display: flex;
        width: 100%;
        justify-content: center;
        gap: 8px;
    }

    .status-btn{
        padding: 7px 14px;
        font-size: 11px;
    }

    .filter-radios{
        display: flex;
        width: 100%;
        justify-content: center;
        padding: 5px;
    }

    .filter-radios label{
        padding: 7px 14px;
        font-size: 11px;
    }

    /* radio indicator 위치 조정 */
    input ~ .checked-radio-bg{
        --width: 70px;
        --left: 5px;
    }

    #popular:checked ~ .checked-radio-bg{ 
        --width: 70px;
        --left: 75px;
    }
    #newest:checked ~ .checked-radio-bg{
        --width: 70px;
        --left: 145px;
    }

    .movies-grid{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    /* !important 제거! */
    .movie-card{
        display: block;
        opacity: 1;
        visibility: visible;
    }

    .movie-card .card-head{
        height: 230px;
        border-radius: 10px;
    }

    .movie-card .card-body .card-title{
        font-size: 13px;
        line-height: 1.4;
        margin-top: 8px;
    }

    .movie-card .bookmark{
        top: 10px;
        left: 10px;
        padding: 4px;
    }

    .movie-card .rating{
        top: 10px;
        right: 10px;
        padding: 4px;
    }

    .movie-card .rating span{
        font-size: 11px;
    }

    .movie-card .release-date{
        font-size: 11px;
    }

    .movies .load-more{
        font-size: 12px;
        padding: 12px 35px;
    }

    .category .section-heading{
        font-size: 20px;
        margin-bottom: 15px;
    }

    .category-grid{
        grid-template-columns: repeat(1, 1fr);
        gap: 30px;
    }

    .category-card .name{
        font-size: 15px;
    }
    
    .category-card .total{
        font-size: 12px;
    }

    .login-area{
        width: 95%;
        height: auto;
    }

    .login-box{
        height: auto;
        padding: 30px 20px;
    }

    .login-box form > input{
        width: 100%;
    }

    .footer-brand .footer-logo{
        width: 50%;
    }

    .footer-brand .slogan{
        font-size: 13px;
    }

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

    .footer-links ul li a{
        font-size: 12px;
    }

    .footer-copyright{
        flex-direction: column-reverse;
        font-size: 12px;
        gap: 15px;
    }

    .footer-copyright .social-links{
        margin-bottom: 0;
    }
}