.irc-widget {
  position: fixed;
  right: 90px;
  bottom: 20px;
  z-index: 9999;
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

.irc-toggle {
  min-height: 56px;
  max-width: min(340px, calc(100vw - 120px));
  border-radius: 999px;
  background: linear-gradient(135deg, #c8102e 0%, #8e1127 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.75);
  padding: 10px 12px 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.32), 0 0 0 3px rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
  animation: irc-pop 2.8s ease-in-out infinite;
}

.irc-toggle:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.34);
}

.irc-toggle-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-align: left;
  min-width: 0;
  flex: 1 1 auto;
}

.irc-toggle-main {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.irc-toggle-sub {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.15;
  opacity: 0.95;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.irc-toggle-icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex: 0 0 auto;
}

@keyframes irc-pop {
  0%, 60%, 100% { transform: translateY(0); }
  68% { transform: translateY(-2px); }
  76% { transform: translateY(0); }
}

.irc-panel {
  width: 460px; height: 620px; background: #0f192d; color: #eef3ff;
  border-radius: 14px; overflow: hidden; border: 1px solid rgba(15, 23, 42, 0.2);
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
  transition: width 0.2s ease, height 0.2s ease;
  position: relative;
}

.irc-panel.is-maximized {
  width: 75vw;
  height: 75vh;
  max-width: 1200px;
  max-height: 900px;
}
/* MODIFIED: .irc-frame now takes up 100% of the panel height. */
.irc-frame { width: 100%; height: 100%; border: 0; }

.irc-panel-actions {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
}

.irc-panel-close {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(15, 23, 42, 0.75);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(3px);
}

.irc-panel-close:hover {
  background: rgba(15, 23, 42, 0.9);
}

@media (max-width: 640px) {
  .irc-widget {
    right: 12px;
    bottom: 12px;
  }

  .irc-toggle {
    max-width: calc(100vw - 24px);
    padding: 10px 12px;
  }

  .irc-toggle-main {
    font-size: 14px;
  }

  .irc-toggle-sub {
    font-size: 11px;
  }

  .irc-toggle-icon {
    width: 30px;
    height: 30px;
    font-size: 17px;
  }

  .irc-panel {
    width: min(460px, calc(100vw - 24px));
    height: min(620px, calc(100vh - 24px));
  }
}