/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */

/* ==========================================================================
   uriaiyu.com - Systematic K-Pop Typography & Visual Hierarchy
   ========================================================================== */

/* Standard Editorial Paragraphs (Intro & Analysis) */
.entry-content p {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--theme-text-color, #2d3748);
  margin-bottom: 1.4em;
}

/* Bilingual Lyrics Paragraphs - 韓文原句（加粗微淡，柔和有型不壓迫） */
.entry-content p:has(.lyr-zh) {
  margin-bottom: 1.25em;
  line-height: 1.55;
  font-size: 1rem;
  font-weight: 600;
  color: #334155;
  text-wrap: pretty;
}

/* Traditional Chinese Translation Lines - 繁中譯文（精緻次級層次） */
.lyr-zh {
  display: block;
  font-size: 0.975rem;
  font-weight: 400;
  color: #64748b !important;
  margin-top: 6px;
  line-height: 1.5;
}

/* Fanchant (應援詞)：網站專屬典雅紫 (#a177bc)，標示現場呼喊口號 */
.lyr-fanchant {
  color: #a177bc !important;
  font-weight: 600;
  font-style: normal;
  padding: 0 2px;
}

/* Universal 16:9 YouTube Video Embeds */
.wp-block-embed-youtube .wp-block-embed__wrapper,
.wp-block-embed.is-type-video .wp-block-embed__wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.wp-block-embed-youtube .wp-block-embed__wrapper::before,
.wp-block-embed.is-type-video .wp-block-embed__wrapper::before {
  display: none !important;
}

.wp-block-embed-youtube iframe,
.wp-block-embed.is-type-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
  border-radius: 8px;
}

/* Disclaimer Blockquote Card */
.wp-block-quote {
  border-left: 3px solid #cbd5e0;
  padding: 0.85em 1.2em;
  margin: 1.8em 0 1.2em 0;
  background-color: #f8fafc;
  border-radius: 6px;
}

.wp-block-quote p {
  margin-bottom: 0 !important;
  font-size: 0.875rem !important;
  font-weight: 400 !important;
  color: #475569 !important;
  line-height: 1.6 !important;
}

.wp-block-quote p strong {
  display: inline-block;
  margin-bottom: 4px;
  color: #1e293b !important;
  font-weight: 600;
}
/* ==========================================================================
   uriaiyu.com - Floating YouTube Mini-Player (PiP on Scroll)
   ========================================================================== */

/* Outer Figure Container (Preserves original 16:9 layout space to prevent CLS) */
.wp-block-embed-youtube,
.wp-block-embed.is-type-video {
  position: relative;
}

/* Floating State for Inner Wrapper */
.wp-block-embed__wrapper.is-floating {
  position: fixed !important;
  bottom: 24px;
  right: 24px;
  width: 320px !important;
  max-width: calc(100vw - 32px);
  aspect-ratio: 16 / 9;
  z-index: 999999;
  border-radius: 12px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35), 0 10px 10px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  background: #000;
  animation: uriaiyuFloatIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transform-origin: bottom right;
}

.wp-block-embed__wrapper.is-floating iframe {
  border-radius: 12px !important;
  width: 100% !important;
  height: 100% !important;
}

/* Close Button (✕) */
.uriaiyu-pip-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  z-index: 1000000;
  transition: all 0.2s ease;
  opacity: 0;
  pointer-events: none;
  user-select: none;
  padding: 0;
}

/* Show close button on hover, or touch devices */
.wp-block-embed__wrapper.is-floating:hover .uriaiyu-pip-close,
.wp-block-embed__wrapper.is-floating .uriaiyu-pip-close:focus,
.wp-block-embed__wrapper.is-floating.is-touch .uriaiyu-pip-close {
  opacity: 1;
  pointer-events: auto;
}

.uriaiyu-pip-close:hover {
  background: rgba(239, 68, 68, 0.95);
  transform: scale(1.1);
}

/* Smooth Entrance Animation */
@keyframes uriaiyuFloatIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Mobile Responsive Optimization (< 640px) */
@media (max-width: 640px) {
  .wp-block-embed__wrapper.is-floating {
    bottom: max(16px, env(safe-area-inset-bottom, 16px));
    right: 16px;
    width: min(180px, 46vw) !important;
    border-radius: 8px;
  }

  .wp-block-embed__wrapper.is-floating iframe {
    border-radius: 8px !important;
  }

  .uriaiyu-pip-close {
    opacity: 0.95;
    pointer-events: auto;
    width: 28px;
    height: 28px;
    font-size: 14px;
    top: 4px;
    right: 4px;
  }
}

/* Print Friendly */
@media print {
  .wp-block-embed__wrapper.is-floating {
    position: static !important;
    box-shadow: none !important;
  }
}
/* ==========================================================================
   uriaiyu.com - Modern Geometric Heading Typography (Replacing Playfair)
   ========================================================================== */
:root {
  --theme-font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

h1, h2, h3, h4, h5, h6,
.page-title,
.entry-title,
.wp-block-heading,
.card-title,
.entry-card-title {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: -0.015em;
}
