@charset "utf-8";

.hide {
    display: none;
}

.image-wrapper {
    width: 100%;
}

.image-wrapper img {
    width: 100%;
}

.y-main {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 0;
}

.channel-aside {
    border: none;
    width: 264px;
    position: relative;
    top: auto;
    right: auto;
}

.channel-aside .scroll {
    max-height: 273px;
}

.channel-aside .close-btn {
    display: none;
}

.channel-aside h2 {
    height: 60px;
    text-align: center;
    line-height: 60px;
    background-color: darkblue;
    color: #fff;
    font-weight: 500;
}

.channel-aside .aside-channel-card {
    height: 90px;
    background-color: #fafafa;
    border-bottom: 1px solid #ddd;
}

.channel-aside .aside-channel-card .channel-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 11px;
    width: 85%;
    height: 100%;
    margin: 0 auto;
}

.channel-aside .aside-channel-card .partner-img-box {
    width: 58px;
    height: 58px;
    overflow: hidden;
    border: 1px solid #ededed;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.channel-aside .aside-channel-card .partner-img-box img {
    width: 100%;
    margin-top: 7%;
}

.channel-aside .aside-channel-card .partner-info-box {
    width: calc(100% - 60px);
    position: relative;
}

#container .channel-aside .aside-channel-card .partner-info-box .partner-name {
    font-size: 18px;
    color: #231f20;
    line-height: 1;
    letter-spacing: -0.18px;
    text-align: left;
    position: relative;
}

.channel-aside .aside-channel-card .partner-info-box .partner-name span {
    font-weight: bold;
}

.channel-aside .aside-channel-card .partner-info-box .partner-name span:first-child::after {
    content: url('https://img.wownet.co.kr/wownet20/front/images/static/main/20201028/icon_home.png');
    vertical-align: sub;
    margin-left: 5%;
}

.content-wrapper {
    width: 100%;
    max-width: 896px;
    padding: 40px 0 86px;
}

.channel-section {
    margin: 5% 0;
}

.channel-section h2 {
    font-size: 30px;
    letter-spacing: -0.6px;
    color: #130000;
    border-bottom: 5px solid #231f20;
    padding-bottom: 10px;
}

.channel-section .channel-list {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding-left: 1%;
    flex-wrap: wrap;
}

.channel-section .channel-item {
    width: calc(98% / 3);
    overflow: hidden;
    border: 1px solid #ddd;
    margin-top: 30px;
    padding: 22px 0 0 22px;
    aspect-ratio: 288 / 380;
    position: relative;
    cursor: pointer;
}

#container .channel-section .channel-item h3 {
    color: #130000;
    font-weight: bold;
    font-size: 28px;
    text-align: left;
    letter-spacing: -0.56px;
    position: relative;
}

.channel-section .channel-item h3 span {
    font-size: 22px;
    letter-spacing: -0.99px;
    margin-left: -2px;
}

.channel-section .channel-item h3::after {
    content: '';
    display: inline-block;
    background: url('https://img.wownet.co.kr/wownet20/front/images/static/main/icon_phome.png') no-repeat center;
    background-size: contain;
    width: 30px;
    height: 30px;
    position: absolute;
    right: 7%;
    top: 50%;
    transform: translateY(-50%);
}

.channel-section .channel-item p {
    font-size: 18px;
    color: #130000;
    font-weight: 500;
    letter-spacing: -0.18px;
    white-space: pre-wrap;
}

.channel-section .channel-item img {
    position: absolute;
    top: 14%;
    right: -20%;
    width: 100%;
}

/*.channel-section .channel-item img.fix {
    width: 88%;
    top: 30%;
    right: -15%;
}*/

.channel-section .more-btn {
    display: block;
    color: #231f20;
    font-size: 18px;
    font-weight: 500;
    border: 1px solid #d3cccc;
    padding: 1% 5%;
    border-radius: 25px;
    margin: 3% auto 7%;
}

button.ychannel-btn {
    border-radius: 50%;
    width: 55px;
    height: 55px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #1a0b42 0%, #2d1b69 50%, #4b2da3 100%);
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

button.ychannel-btn.on {
    transform: rotate(-180deg);
}

button.ychannel-btn.on::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background: url('https://img.wownet.co.kr/wownet20/front/images/static/btn_tbclose.png') no-repeat center;
    background-size: 45%;
}

button.ychannel-btn.off::before {
    content: 'Y채널\A리스트';
    white-space: pre;
    text-align: center;
    color: #fff;
    font-size: 12px;
}

@media (hover: hover) and (pointer: fine){
    .channel-section .channel-item:hover {
        background-color: #6032c0;
    }

    #container .channel-section .channel-item:hover h3 {
        color: #fff;
    }

    .channel-section .channel-item:hover p {
        color: #fff;
    }
}

@media (max-width: 1200px) {
    .y-main {
        justify-content: center;
    }

    .channel-aside {
        display: none;
    }
}

@media (max-width: 768px) {
    .channel-aside {
        position: fixed;
        z-index: 2;
        right: 5%;
        bottom: 320px;
        width: 50%;
        background-color: #fff;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        border-radius: 13%;
        overflow: hidden;
    }

    .channel-aside .close-btn {
        display: block;
        background-color: #26166e;
        width: 25px;
        height: 25px;
        border-radius: 50%;
        position: absolute;
        top: -4%;
        right: -5%;
    }

    .channel-aside .close-btn img {
        width: 60%;
        margin: 0 auto;
    }

    aside.channel-aside .scroll {
        max-height: 212px;
        overflow: scroll;
    }

    aside.channel-aside > img {
        display: none;
    }

    .channel-aside .aside-channel-card {
        height: 70px;
        background-color: transparent;
    }

    .channel-aside .aside-channel-card .partner-img-box {
        width: 50px;
        height: 50px;
    }

    .channel-aside .aside-channel-card .partner-info-box .partner-name span:first-child::after {
        content: none;
    }

    #container .channel-aside .aside-channel-card .partner-info-box .partner-name {
        font-size: 16px;
    }

    .content-wrapper {
        width: 90%;
        padding: 0 0 15%;
    }

    .channel-section {
        margin: 10% 0;
    }

    .channel-section h2 {
        font-size: 24px;
        border-bottom: none;
        padding-bottom: 0;
    }

    .channel-section .channel-list {
        padding-left: 0;
    }

    .channel-section .channel-item {
        width: calc(98% / 2);
        padding: 3% 0 0 3%;
        margin-top: 5%;
        aspect-ratio: 191.4 / 252.1;
    }

    .channel-section .channel-item img {
        top: 12%;
        right: -20%;
    }

/*    .channel-section .channel-item img.fix {
        top: 25%;
        right: -15%;
    }*/

    #container .channel-section .channel-item h3 {
        font-size: 18px;
    }

    .channel-section .channel-item h3 span {
        font-size: 14px;
    }

    .channel-section .channel-item h3::after {
        width: 20px;
        height: 20px;
    }

    .channel-section .channel-item p {
        font-size: 14px;
        line-height: 1.2;
    }

    .channel-section .more-btn {
        display: none;
    }
}