@charset "utf-8";

/* 게시판 상단 타이틀 */
.f9_box01 {
    background-color: #fff;
    border: 1px solid #dfdfdf;
    margin-top: 5px;
    margin-bottom: 30px;
}

.main_link_tit {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 60px;
    padding: 0 20px;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.4;
}

.main_link_tit img {
    display: block;
    max-height: 24px;
    width: auto;
}

#hd_comm_inner { max-width:1280px; margin:10px auto 0; }

@media (max-width: 768px){
  #motelegram { text-align:center; width:100%; margin:0 auto 10px; padding:10px; background:#f4f4f4; border:1px solid #dfdfdf; }
  #motelegram a { font-size:14px; font-family:'Noto Sans KR'; font-weight:700; }
  #motelegram img { width:20px; height:auto; }
}

/* =========================
   배너 공통 타이틀
========================= */

.main_banner_title {text-align:center; margin:20px 0;}
.main_banner_title h2 {display:inline-block;font-size:24px;font-weight:900;letter-spacing:-0.08rem;line-height: 30px;vertical-align: middle; margin: 5px 0;}
.main_banner_title .icon_main_banner_title {display:inline-block;vertical-align: middle;margin-top:-2px;}
.main_banner_title .icon_main_banner_title img {width:30px}
.main_banner_title .icon_main_banner_title:first-child {margin-right:5px;}
.main_banner_title .icon_main_banner_title:last-child {margin-left:5px;}
.main_banner_title h2 span {color:#4186ee;}
.main_banner_title2 {color:#666; text-align:center; margin-top:6px; margin-bottom:35px;}

@media (max-width: 767px) {
  .main_banner_title {margin:10px 0 0px}
  .main_banner_title h2 {font-size:18px;}
  .main_banner_title .icon_main_banner_title:first-child {margin-right:0;}
  .main_banner_title .icon_main_banner_title:last-child {margin-left:0;}
  .main_banner_title .icon_main_banner_title img {width:20px;}
}

/* =========================================================
   [PC 레이아웃 (769px 이상)]
========================================================= */
@media screen and (min-width: 769px) {
  /* PC 롱배너 (2개) */
  body .main-banners-long,
  body div.main-banners-long {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2px 4px !important;
    width: 100% !important;
    max-width: 1280px !important;
    margin: 0 auto 2px !important;
  }

  body .main-banners-long > *,
  body .main-banners-long a,
  body .main-banners-long div {
    display: block !important;
    width: 100% !important;
    height: 100px !important;
    min-height: 100px !important;
    max-height: 100px !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    overflow: hidden !important;
  }

  body .main-banners-long img {
    display: block !important;
    width: 100% !important;
    height: 100px !important;
    min-height: 100px !important;
    max-height: 100px !important;
    object-fit: cover !important;
  }

  /* PC 작은배너 (4개) */
  body .main-banners-basic,
  body div.main-banners-basic {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 2px 4px !important;
    width: 100% !important;
    max-width: 1280px !important;
    margin: 0 auto 2px !important;
  }

  body .main-banners-basic > *,
  body .main-banners-basic a,
  body .main-banners-basic div {
    display: block !important;
    width: 100% !important;
    height: 100px !important;
    min-height: 100px !important;
    max-height: 100px !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    overflow: hidden !important;
  }

  body .main-banners-basic img {
    display: block !important;
    width: 100% !important;
    height: 100px !important;
    min-height: 100px !important;
    max-height: 100px !important;
    object-fit: cover !important;
  }
}

/* =========================================================
   [모바일 레이아웃 (768px 이하)]
========================================================= */
@media screen and (max-width: 768px) {
  /* 모바일 롱배너 (1개씩 꽉 차게) */
  body .main-banners-long,
  body div.main-banners-long {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 4px !important;
    width: 100% !important;
    margin: 0 auto 4px !important;
  }

  body .main-banners-long > *,
  body .main-banners-long a,
  body .main-banners-long div {
    display: block !important;
    width: 100% !important;
    height: 100px !important;
    min-height: 100px !important;
    max-height: 100px !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    overflow: hidden !important;
  }

  body .main-banners-long img {
    display: block !important;
    width: 100% !important;
    height: 100px !important;
    min-height: 100px !important;
    max-height: 100px !important;
    object-fit: cover !important;
  }

  /* 모바일 작은배너 (2개씩 2열 유지) */
  body .main-banners-basic,
  body div.main-banners-basic {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 4px !important;
    width: 100% !important;
    margin: 0 auto 4px !important;
  }

  body .main-banners-basic > *,
  body .main-banners-basic a,
  body .main-banners-basic div {
    display: block !important;
    width: 100% !important;
    height: 100px !important;
    min-height: 100px !important;
    max-height: 100px !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    overflow: hidden !important;
  }

  body .main-banners-basic img {
    display: block !important;
    width: 100% !important;
    height: 100px !important;
    min-height: 100px !important;
    max-height: 100px !important;
    object-fit: cover !important;
  }
}

/* ===============================
   TOP10 GRID (NO :root)
================================ */

#dvhidden{text-align: center; border: 1px solid #dfdfdf; width: 100%; background: #ffffff; cursor: pointer; padding-top: 15px; padding-bottom: 12px; font-size: 17px; margin: 0 auto 10px; border-radius: 10px;}
.rainbow-text { background: repeating-linear-gradient(90deg, violet, indigo, blue, green, yellow, orange, red, violet); background-size: 800% 800%; font-family: 'Paperlogy-8ExtraBold'; -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: rainbow 4s linear infinite; }
.is_sher_box { margin-bottom: 10px; }

.xi-motion{
  display:inline-block;
  animation: xiDown 1s infinite ease-in-out;
}
@keyframes xiDown{
  0%,100%{ transform: translateY(-4px); }
  50%{ transform: translateY(4px); }
}

@keyframes rainbow { 
0% { background-position: 0% 50% } 
50% { background-position: 100% 25% } 
100% { background-position: 0% 50% } 
}

#hd_comm_inner .address-box{
  background:#fff;
  border:1px solid #dfdfdf;
  border-radius:10px;
  padding:10px 14px;
  margin-bottom:10px;
  color:#3c3c3c;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:56px;
}

#hd_comm_inner .address-box .addr-left{
  display:flex;
  align-items:center;
  gap:8px;
  white-space:nowrap;
}
#hd_comm_inner .address-box .addr-ico{ font-size:18px; line-height:1; }
#hd_comm_inner .address-box .addr-text{ font-size:17px; font-weight:600; }
#hd_comm_inner .address-box .addr-domain{ font-size:18px; font-weight:800; color:#c00020; }

#hd_comm_inner .address-box .addr-right{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:0px;
  white-space:nowrap;
}

#hd_comm_inner .address-box .sns{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 6px;
  border-radius:8px;
  text-decoration:none;
  color:#222;
  font-weight:700;
  font-size:15px;  
}

#hd_comm_inner .address-box .sns-txt{ font-family:'Noto Sans KR' !important; }
#hd_comm_inner .address-box .sns::before{
  content:"";
  width:28px;
  height:28px;
  display:block;
  border-radius:6px;
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}

#hd_comm_inner .address-box .sns-google::before{ background-image:url('../img/sns/i_google.png'); }
#hd_comm_inner .address-box .sns-naver::before{ background-image:url('../img/sns/i_naver.jpg'); }
#hd_comm_inner .address-box .sns-daum::before{ background-image:url('../img/sns/i_daum.jpg'); }
#hd_comm_inner .address-box .sns-kakao::before{ background-image:url('../img/sns/i_kakao.jpg'); }
#hd_comm_inner .address-box .sns-band::before{ background-image:url('../img/sns/i_band.jpg'); }
#hd_comm_inner .address-box .sns-youtube::before{ background-image:url('../img/sns/i_youtube.jpg'); }
#hd_comm_inner .address-box .sns-instagram::before{ background-image:url('../img/sns/icon_instagram.png'); }
#hd_comm_inner .address-box .sns-facebook::before{ background-image:url('../img/sns/icon_facebook.png'); }

#hd_comm_inner .address-box .sns:hover{ background:#f6f6f6; }

@media (max-width:1280px){
  #hd_comm_inner { padding:0 !important; }
}

@media (max-width: 768px){
  #dvhidden { font-size:15px; }
  #hd_comm_inner .address-box{
    flex-direction:column;
    align-items:center;
    gap:10px;
    padding:12px 14px;
  }

  #hd_comm_inner .address-box .addr-right{
    width:100%;
    justify-content:center;
    flex-wrap:wrap;
    gap:10px;
  }

  #hd_comm_inner .address-box .sns{
    padding:0;
  }

  #hd_comm_inner .address-box .sns-txt{
    display:none;
  }
}

/* =========================================
   큐브 배너 (4면체 최적화 버전)
========================================= */
#banner-cube-stage{
  position:fixed;
  right:40px;
  bottom:140px;
  width:200px;
  height:200px;
  z-index:99990 !important;
  perspective: 1000px;
  perspective-origin: 50% 50%;
  will-change: transform;
}

.cube-close-wrap {
  position: absolute;
  top: -30px;
  right: 0;
  width: 100%;
  height: 30px;
  z-index: 99991 !important;
}

#banner-cube-close {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    background: #222 !important;
    color: #fff !important;
    border: 1px solid #444 !important;
    font-size: 11px !important;
    font-weight: bold !important;
    padding: 4px 8px !important;
    border-radius: 3px !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    line-height: 1 !important;
    z-index: 99992 !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent;
}

#banner-cube-close:hover {
    background: #000 !important;
    border-color: #00bfff !important;
}

#banner-cube-shape{
  position:relative;
  width:200px;
  height:200px;
  transform-style:preserve-3d;
  transform-origin: 100px 100px 0;
  animation:cubeRotateY 15s linear infinite;
  transform: translateZ(0);
}

#banner-cube-shape:hover{
  animation-play-state:paused;
}

#banner-cube-stage .cube-side{
  position:absolute;
  top:0;
  left:0;
  width:200px;
  height:200px;
  overflow:hidden;
  background:#fff;
  border:1px solid #ddd;
  backface-visibility:hidden;
  -webkit-backface-visibility: hidden;
  box-shadow:0 8px 20px rgba(0,0,0,0.12);
  box-sizing: border-box;
}

/* 4면체 각 면의 각도 및 Z축 거리 설정 (90도 간격, 너비 200px의 절반인 translateZ 100px) */
#banner-cube-stage .cube-side:nth-child(1){ transform:rotateY(0deg) translateZ(100px) !important; }
#banner-cube-stage .cube-side:nth-child(2){ transform:rotateY(90deg) translateZ(100px) !important; }
#banner-cube-stage .cube-side:nth-child(3){ transform:rotateY(180deg) translateZ(100px) !important; }
#banner-cube-stage .cube-side:nth-child(4){ transform:rotateY(270deg) translateZ(100px) !important; }
#banner-cube-side:nth-child(n+5){ display: none !important; }

#banner-cube-stage .cube-side a,
#banner-cube-stage .cube-side img{
  display:block;
  width:100%;
  height:100%;
}

#banner-cube-stage .cube-side img{
  object-fit:cover;
}

@keyframes cubeRotateY{
  from { transform:rotateY(0deg); }
  to   { transform:rotateY(-360deg); }
}

@media (max-width: 1024px){
  #banner-cube-stage{
    right:20px;
    bottom:140px;
    width:160px;
    height:160px;
    perspective: 800px;
  }

  #banner-cube-shape{
    width:160px;
    height:160px;
    transform-origin: 80px 80px 0;
  }

  #banner-cube-stage .cube-side{
    width:160px;
    height:160px;
  }

  /* 태블릿 너비 160px의 절반인 80px 적용 */
  #banner-cube-stage .cube-side:nth-child(1){ transform:rotateY(0deg) translateZ(80px) !important; }
  #banner-cube-stage .cube-side:nth-child(2){ transform:rotateY(90deg) translateZ(80px) !important; }
  #banner-cube-stage .cube-side:nth-child(3){ transform:rotateY(180deg) translateZ(80px) !important; }
  #banner-cube-stage .cube-side:nth-child(4){ transform:rotateY(270deg) translateZ(80px) !important; }
}

@media (max-width: 768px){
  #banner-cube-stage{
    display:block !important;
    right:10px !important;
    /* 상단 버튼 바로 위 적당한 위치 (135px) */
    bottom: calc(135px + env(safe-area-inset-bottom, 0px)) !important;
    width:90px !important;
    height:90px !important;
    perspective: 400px !important;
    perspective-origin: 50% 50% !important;
    z-index: 99990 !important;
  }

  #banner-cube-shape{
    width:90px !important;
    height:90px !important;
    transform-origin: 45px 45px 0 !important;
  }

  #banner-cube-stage .cube-side{
    width:90px !important;
    height:90px !important;
  }

  /* 모바일 너비 90px의 절반인 45px 적용 */
  #banner-cube-stage .cube-side:nth-child(1){ transform:rotateY(0deg) translateZ(45px) !important; }
  #banner-cube-stage .cube-side:nth-child(2){ transform:rotateY(90deg) translateZ(45px) !important; }
  #banner-cube-stage .cube-side:nth-child(3){ transform:rotateY(180deg) translateZ(45px) !important; }
  #banner-cube-stage .cube-side:nth-child(4){ transform:rotateY(270deg) translateZ(45px) !important; }
  
  #banner-cube-close {
    top: -5px !important;
    font-size: 11px !important;
    padding: 6px 12px !important;
  }
}

/* =========================================================
   [팝업 레이어 모바일 반응형]
========================================================= */
.hd_pops {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 10000 !important;
    width: 88vw !important;
    max-width: 360px !important;
    max-height: 80vh !important;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    overflow: hidden;
}

.hd_pops_con {
    width: 100% !important;
    height: auto !important;
    max-height: calc(80vh - 45px) !important;
    overflow-y: auto;
}

.hd_pops img,
.hd_pops .hd_pops_con img,
.hd_pops_con a img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
}

.hd_pops_footer {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    background: #111;
    color: #fff;
    padding: 8px 12px;
}

.hd_pops_footer button {
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
}

/* =========================================================
   [모바일 전용 순위 박스 세로 높이 압축]
========================================================= */
@media (max-width: 768px) {
    .f9_box01, .custom-box-border, .widget-index {
        margin-bottom: 5px !important;
        padding-top: 4px !important;
        padding-bottom: 4px !important;
    }
    
    .main_link_tit {
        min-height: 34px !important;
        padding: 0 8px !important;
        font-size: 13px !important;
    }

    .rank-item, .rank-list li, .basic-list li, tr, td {
        padding-top: 1px !important;
        padding-bottom: 1px !important;
        margin-bottom: 0px !important;
        line-height: 1.15 !important;
    }

    /* 최신글 스킨 리스트 하단 빈 공간 및 여백 완벽 압축 */
    .rank10-card {
        margin-bottom: 5px !important;
        padding-bottom: 0 !important;
    }
    .rank10-list {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
    .rank10-list li {
        height: auto !important;
        min-height: 0 !important;
        margin-bottom: 2px !important;
    }
    .rank10-list li.is-empty {
        display: none !important;
    }
}

/* ===================================================
   [중요] PC 화면에서는 하단 네비게이션바 원천 차단 (숨김)
   =================================================== */
.mobile-bottom-nav {
    display: none !important;
}

/* ===================================================
   [아이폰 사파리 짤림 방지 완벽 대응형] 하단 네비게이션바 디자인 (모바일 전용)
   =================================================== */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        background: #ffffff !important;
        border-top: 1px solid #eaeaea !important;
        display: flex !important;
        justify-content: space-around !important;
        align-items: center !important;
        z-index: 999999 !important;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05) !important;
        
        /* [아이폰 짤림 핵심 대응] 홈바 영역을 포함한 정확한 높이 및 패딩 산정 */
        height: calc(60px + env(safe-area-inset-bottom, 0px)) !important;
        padding-bottom: env(safe-area-inset-bottom, 0px) !important;
        
        /* 사파리 스크롤 렌더링 꼬임 방지 (GPU 가속 고정) */
        -webkit-transform: translateZ(0) !important;
        transform: translateZ(0) !important;
        -webkit-backface-visibility: hidden !important;
        backface-visibility: hidden !important;
        -webkit-perspective: 1000 !important;
        perspective: 1000 !important;
    }

    .mobile-bottom-nav a {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-decoration: none !important;
        color: #333333 !important;
        font-size: 10px !important;
        font-family: 'Noto Sans KR', sans-serif !important;
        flex: 1 !important;
        height: 60px !important;
        padding-top: 4px !important;
        letter-spacing: -0.8px !important;
        white-space: nowrap !important;
    }

    .mobile-bottom-nav a i {
        font-size: 20px !important;
        margin-bottom: 3px !important;
        color: #555555 !important;
        line-height: 1 !important;
    }

    .mobile-bottom-nav a span {
        white-space: nowrap !important;
        display: inline-block !important;
    }

    /* 가운데 홈 버튼 스타일 (연한 하늘색 적용) */
    .mobile-bottom-nav a.home-btn {
        position: relative !important;
        top: -10px !important;
        background: #00bfff !important;
        width: 46px !important;
        height: 46px !important;
        border-radius: 50% !important;
        box-shadow: 0 4px 10px rgba(0, 191, 255, 0.4) !important;
        flex: none !important;
        margin: 0 8px !important;
        padding-top: 0 !important;
    }

    .mobile-bottom-nav a.home-btn i {
        color: #ffffff !important;
        font-size: 21px !important;
        margin-bottom: 0 !important;
    }

    .mobile-bottom-nav a.home-btn span {
        display: none !important; 
    }
    
    /* 하단 강제 여백 제거 (여백 공백 없앰) */
    #wrapper, #container, #content {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }
}

/* ===================================================
   스크롤 상단 이동 버튼 디자인 (반투명 및 모바일 위치 최적화)
   =================================================== */
#top_btn {
    display: none;
    position: fixed;
    right: 15px !important;
    /* 모바일 하단 네비바 바로 위 배치 */
    bottom: calc(75px + env(safe-area-inset-bottom, 0px)) !important;
    z-index: 99995 !important;
    background: rgba(0, 168, 255, 0.85);
    color: #ffffff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    transition: background 0.3s, opacity 0.3s;
}

#top_btn:hover {
    background: rgba(0, 168, 255, 1);
}

#top_btn i {
    font-size: 18px;
    line-height: 42px;
}

/* PC 화면에서는 네비게이션바가 없으므로 우측 하단 여유 있는 위치로 조정 */
@media screen and (min-width: 769px) {
    #top_btn {
        right: 30px !important;
        bottom: 30px !important;
        width: 45px;
        height: 45px;
    }
    #top_btn i {
        font-size: 20px;
        line-height: 45px;
    }
}

/* =========================================================
   [최우선 강제 덮어쓰기] 모바일 큐브 배너 위치 정밀 조정
========================================================= */
@media screen and (max-width: 768px) {
  html body div#banner-cube-stage,
  html body #banner-cube-stage {
    /* 175px -> 135px 로 하향 조정 */
    bottom: calc(135px + env(safe-area-inset-bottom, 0px)) !important;
    top: auto !important;
    right: 10px !important;
    z-index: 99990 !important;
  }
}