/* Stream Label Pro - Label Display Styles */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: transparent;
  overflow: hidden;
  width: 100vw;
  height: 100vh;
  font-family: 'Noto Sans JP', sans-serif;
}

#label-container {
  position: relative;
  width: 100%;
  height: 100%;
}

/* ── Label Slot Base ── */
.label-slot {
  position: absolute;
  pointer-events: none;
  will-change: transform, opacity;
  transition: background 0.3s ease, border-radius 0.3s ease;
  opacity: 0;
}

/* ── Position Classes ── */
.pos-top-left {
  top: calc(5% + var(--offset-y, 0px));
  left: calc(5% + var(--offset-x, 0px));
}

.pos-top-center {
  top: calc(5% + var(--offset-y, 0px));
  left: calc(50% + var(--offset-x, 0px));
  transform: translateX(-50%);
}

.pos-top-right {
  top: calc(5% + var(--offset-y, 0px));
  right: calc(5% - var(--offset-x, 0px));
}

.pos-middle-left {
  top: calc(50% + var(--offset-y, 0px));
  left: calc(5% + var(--offset-x, 0px));
  transform: translateY(-50%);
}

.pos-middle-center {
  top: calc(50% + var(--offset-y, 0px));
  left: calc(50% + var(--offset-x, 0px));
  transform: translate(-50%, -50%);
}

.pos-middle-right {
  top: calc(50% + var(--offset-y, 0px));
  right: calc(5% - var(--offset-x, 0px));
  transform: translateY(-50%);
}

.pos-bottom-left {
  bottom: calc(5% - var(--offset-y, 0px));
  left: calc(5% + var(--offset-x, 0px));
}

.pos-bottom-center {
  bottom: calc(5% - var(--offset-y, 0px));
  left: calc(50% + var(--offset-x, 0px));
  transform: translateX(-50%);
}

.pos-bottom-right {
  bottom: calc(5% - var(--offset-y, 0px));
  right: calc(5% - var(--offset-x, 0px));
}

/* ── Layout: Lower Third ── */
.layout-lower-third {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-width: 320px;
  max-width: 600px;
}

.layout-lower-third .lt-accent-bar {
  width: 4px;
  flex-shrink: 0;
  background: var(--accent-color, #00aaff);
  border-radius: 2px 0 0 2px;
}

.layout-lower-third .lt-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 20px;
  background: var(--bg-color, rgba(10,10,46,0.8));
  border-radius: 0 6px 6px 0;
  gap: 4px;
}

.layout-lower-third .lt-line1 {
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
}

.layout-lower-third .lt-line2 {
  font-size: 14px;
  line-height: 1.3;
  opacity: 0.85;
}

/* ── Layout: Card ── */
.layout-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-radius: 12px;
  min-width: 240px;
  max-width: 480px;
}

.layout-card .card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  background: var(--accent-color, #00aaff);
  color: #ffffff;
}

.layout-card .card-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.layout-card .card-line1 {
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
}

.layout-card .card-line2 {
  font-size: 13px;
  line-height: 1.3;
  opacity: 0.8;
}

/* ── Layout: Social ── */
.layout-social {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.layout-social .social-pill {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.layout-social .social-pill-icon {
  font-size: 16px;
  line-height: 1;
}

/* ── Layout: Telop ── */
.layout-telop {
  width: 100vw;
  position: fixed;
  left: 0;
  bottom: 0;
  padding: 10px 24px;
  overflow: hidden;
  white-space: nowrap;
}

.layout-telop .telop-text {
  display: inline-block;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.layout-telop .telop-text.telop-scroll {
  animation: scroll-marquee var(--scroll-duration, 15s) linear infinite;
  padding-left: 100%;
}

/* ── Layout: Mini ── */
.layout-mini {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

.layout-mini .mini-icon {
  font-size: 18px;
  line-height: 1;
}

/* ── Layout: Schedule ── */
.layout-schedule {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 10px;
  min-width: 200px;
  max-width: 400px;
}

.layout-schedule .schedule-cal {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  background: var(--accent-color, #00aaff);
  color: #ffffff;
}

.layout-schedule .schedule-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.layout-schedule .schedule-line1 {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
}

.layout-schedule .schedule-line2 {
  font-size: 12px;
  line-height: 1.3;
  opacity: 0.75;
}

/* ── Text Effects ── */
.fx-glow {
  text-shadow:
    0 0 10px var(--glow-color, #00aaff),
    0 0 20px var(--glow-color, #00aaff),
    0 0 40px var(--glow-color, #00aaff);
}

.fx-outline {
  -webkit-text-stroke: var(--outline-width, 2px) var(--outline-color, #000);
  paint-order: stroke fill;
}

.fx-gradient {
  background: linear-gradient(135deg, var(--grad-color1, #ff6ec7), var(--grad-color2, #7873f5));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.fx-shadow {
  text-shadow: 2px 2px 4px var(--shadow-color, rgba(0,0,0,0.5));
}

/* ── Backdrop Blur ── */
.label-slot[data-blur="true"] {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* ── Entrance Animations ── */
@keyframes enter-slide-left {
  from { opacity: 0; transform: translateX(-80px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes enter-slide-right {
  from { opacity: 0; transform: translateX(80px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes enter-slide-up {
  from { opacity: 0; transform: translateY(60px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes enter-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Exit Animations ── */
@keyframes exit-slide-left {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(-80px); }
}

@keyframes exit-slide-right {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(80px); }
}

@keyframes exit-slide-up {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-60px); }
}

@keyframes exit-fade-out {
  from { opacity: 1; }
  to   { opacity: 0; }
}

/* ── Marquee Scroll ── */
@keyframes scroll-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}
