/*
 Theme Name: Blocksy Child
 Template: blocksy
*/

/* ============================================================
   Global Dark Theme
   ============================================================ */
:root{
  --kma-bg: #050b12;
  --kma-bg-soft: #0d1722;
  --kma-bg-card: #162232;
  --kma-line: rgba(255,255,255,0.08);
  --kma-text: rgba(255,255,255,0.96);
  --kma-text-soft: rgba(255,255,255,0.72);
  --kma-accent: #4f7dff;
}

html,
body{
  background:
    radial-gradient(78% 58% at 50% -8%, rgba(255,255,255,0.10) 0%, rgba(0,0,0,0) 58%),
    linear-gradient(180deg, #03070d 0%, #07111a 42%, #0a1520 100%);
  color: var(--kma-text);
}

body,
body .site,
body #main-container,
body #main,
body .site-main,
body .entry-content,
body article,
body .content-area,
body .ct-container{
  background-color: transparent;
}

body,
body p,
body li,
body dd,
body dt,
body figcaption,
body label,
body .entry-content,
body .ct-container{
  color: var(--kma-text-soft);
}

body h1,
body h2,
body h3,
body h4,
body h5,
body h6,
body .entry-title,
body .page-title,
body .wp-block-post-title,
body .wp-block-post-title a,
body .audio-player-title,
body .audio-expanded-title{
  color: var(--kma-text);
}

body a{
  color: var(--kma-text);
}

body a:hover{
  color: #ffffff;
}

.ct-header .site-title,
.ct-header .site-description,
.ct-header [class*="menu"] a,
.ct-header [class*="trigger"],
.ct-header .ct-icon,
.ct-header svg{
  color: var(--kma-text);
  fill: currentColor;
}

.ct-header .kma-header-logo-link,
.kma-home-header-brand{
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 0;
}

.ct-header .kma-header-logo-icon,
.ct-header .kma-header-logo-wordmark,
.kma-home-header-brand .kma-header-logo-icon,
.kma-home-header-brand .kma-header-logo-wordmark{
  display: block;
  width: auto;
  max-width: none;
  flex: 0 0 auto;
}

.ct-header .kma-header-logo-icon,
.kma-home-header-brand .kma-header-logo-icon{
  height: 46px;
  transform: translateY(-4px);
}

.ct-header .kma-header-logo-wordmark,
.kma-home-header-brand .kma-header-logo-wordmark{
  height: 88px;
}

@media (max-width: 999px){
  .ct-header .kma-header-logo-link,
  .kma-home-header-brand{
    gap: 3px;
  }

  .ct-header .kma-header-logo-icon,
  .kma-home-header-brand .kma-header-logo-icon{
    height: 35px;
    transform: translateY(-3px);
  }

  .ct-header .kma-header-logo-wordmark,
  .kma-home-header-brand .kma-header-logo-wordmark{
    height: 64px;
  }
}

body input,
body textarea,
body select{
  background: rgba(17, 28, 41, 0.96);
  color: var(--kma-text);
  border-color: var(--kma-line);
}

body input::placeholder,
body textarea::placeholder{
  color: rgba(255,255,255,0.42);
}

/* ============================================================
   CMENU (custom mobile menu)
   ============================================================ */
#cmenu-panel {
  display: none;
}

@media (max-width: 999px) {
  #offcanvas { display: none; }
  .ct-header-trigger.ct-toggle[aria-controls="offcanvas"],
  .ct-header-trigger.ct-toggle[data-toggle-panel="#offcanvas"] {
    display: none;
  }

  .cmenu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    padding: 0;
  }
  .cmenu-ico { display: block; }

  #cmenu-panel {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    background: rgba(0,0,0,0.55);
  }
  #cmenu-panel.is-open { display: block; }

  #cmenu-panel .cmenu-inner {
    position: absolute;
    top: 0;
    right: 0;
    width: min(86vw, 360px);
    height: 100%;
    background: var(--kma-bg-soft);
    color: var(--kma-text);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px 14px 20px;
  }

  #cmenu-panel .cmenu-close {
    position: sticky;
    top: 0;
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    color: var(--kma-text);
  }

  html.cmenu-open,
  body.cmenu-open {
    overflow: hidden;
    touch-action: none;
  }
}

/* ============================================================
   Favorites / MyPage
   ============================================================ */
.kma-favbtn{
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(20,31,43,0.92);
  color: var(--kma-text);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  outline: none;
  box-shadow: none;
}
.kma-favbtn:hover{ opacity: 0.92; }
.kma-favbtn:focus{ outline: none; box-shadow: 0 0 0 2px rgba(79,125,255,0.26); }
.kma-favbtn.is-faved{
  border-color: rgba(255,255,255,0.24);
  background: rgba(79,125,255,0.16);
}

.kma-favlogin{
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 13px;
  text-decoration: underline;
}

/* list */
.kma-fav-list{
  padding-left: 18px;
}
.kma-fav-list li{
  margin: 8px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.kma-fav-list a{
  text-decoration: none;
}

.kma-titlelink{
  text-decoration: none;
}
.kma-titlelink:hover{
  opacity: 0.9;
}

/* play link pill */
.kma-playlink{
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(20,31,43,0.92);
  color: var(--kma-text);
  font-size: 12px;
  line-height: 1;
  text-decoration: none;
}
.kma-playlink:hover{ opacity: 0.92; }

/* mypage favorites play icon button */
.kma-mypage-favorites .kma-titlelink{
  text-decoration: none;
}
.kma-mypage-favorites .kma-playbtn{
  position: relative;
  width: 42px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(20,31,43,0.92);
  cursor: pointer;
  font-size: 0;
  line-height: 0;
  vertical-align: middle;
}
.kma-mypage-favorites .kma-playbtn::before{
  content: "";
  position: absolute;
  left: 16px;
  top: 9px;
  width: 0;
  height: 0;
  border-left: 10px solid #fff;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}

/* hitbox */
.kma-fav-list .kma-titlelink{
  flex: 1 1 auto;
  display: block;
  min-width: 0;
}
.kma-fav-list .kma-playbtn{
  flex: 0 0 auto;
  position: relative;
  z-index: 10;
  pointer-events: auto;
}
