/* Global Layout and Body */
body {
  font-family: Arial, sans-serif;
  background: #18181b;
  color: #f5f5f5;
  margin: 0;
  padding: 0;
}

/* Header */
.site-header {
  background: #9147ff;
  padding: 1.2rem;
  text-align: center;
  color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.site-header h1 {
  margin: 0;
  font-size: 2rem;
  color: #fff;
}

/* Live Status */
.live-status {
  margin-top: 0.5rem;
  font-size: 1.2rem;
  color: #fff;
}

.live-status.online {
  color: red;
}

.live-status.offline {
  color: #999ccf;
}

/* Now Playing */
.now-playing-bar {
  background-color: #2a2a2a;
  border-left: 5px solid #9147ff;
  padding: 0.6rem 1rem;
  font-size: 1.1rem;
  margin: 1rem auto;
  max-width: 1200px;
  border-radius: 0 8px 8px 0;
  box-sizing: border-box;
}

/* Main Stream Section Layout */
.stream-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
  width: 100%;
  max-width: 1400px;
  margin: 1.5rem auto;
  padding: 0 1rem;
  box-sizing: border-box;
  align-items: stretch;
}

/* Use wrapper classes if present */
.stream-player-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 300px;
  background: #111;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
}

.stream-chat-wrap {
  height: 100%;
  min-height: 300px;
  background: #111;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
}

/* Also works if you still only have raw iframes */
.stream-player,
.stream-chat {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
}

/* If player is inside a wrapper, pin it properly */
.stream-player-wrap .stream-player {
  position: absolute;
  inset: 0;
}

/* Give chat a fixed column height matching the player area */
.stream-chat-wrap,
.stream-grid > .stream-chat,
.stream-grid > .guestbook-box {
  min-height: 0;
}

.stream-grid > .stream-chat {
  height: 100%;
  min-height: 300px;
}

/* Guestbook Box */
.guestbook-box {
  background: #1e1e1e;
  border-radius: 12px;
  padding: 1rem;
  color: #eee;
  box-shadow: 0 0 10px #000;
  width: 100%;
  max-width: 350px;
  height: 100%;
  min-height: 500px;
  overflow-y: auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.guestbook-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.guestbook-form input,
.guestbook-form textarea {
  width: 100%;
  padding: 0.5rem;
  background: #2a2a2a;
  color: #fff;
  border: 1px solid #444;
  border-radius: 4px;
  box-sizing: border-box;
}

.guestbook-form button {
  padding: 0.5rem;
  background: #9147ff;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 4px;
}

.guestbook-messages {
  list-style: none;
  padding: 0;
  margin: 0;
  overflow-y: auto;
  flex: 1;
}

.guestbook-messages li {
  margin-bottom: 1rem;
  border-bottom: 1px solid #333;
  padding-bottom: 0.5rem;
}

/* Countdown + Schedule */
.widgets {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  display: flex;
  gap: 2rem;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

.countdown-box,
.schedule-box {
  background: #1e1e1e;
  border-radius: 12px;
  padding: 1.5rem;
  color: #eee;
  box-shadow: 0 0 10px #000;
  width: 100%;
  max-width: 600px;
  box-sizing: border-box;
}

.countdown-box {
  margin: 1rem auto;
  text-align: center;
}

.countdown-box h2,
.schedule-box h2 {
  margin-top: 0;
  color: #fff;
}

.countdown-box h2 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.schedule-box ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.schedule-box li {
  padding: 0.4rem 0;
  border-bottom: 1px solid #333;
}

.transring-wrapper {
  text-align: center;
  margin: 2rem auto;
}

.heartrate-box {
  background: #1e1e1e;
  border-radius: 8px;
  padding: 1rem;
  color: #f5f5f5;
  font-size: 1.1rem;
  margin: 1rem auto;
  width: fit-content;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.heart-icon {
  font-size: 1.5rem;
  animation: pulse 1s infinite ease-in-out;
  transform-origin: center;
  display: inline-block;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 4px #ff5c8a);
  }
  50% {
    transform: scale(1.2);
    filter: drop-shadow(0 0 10px #ff5c8a);
  }
}

.support-links {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #444;
  text-align: center;
  font-size: 1rem;
}

.support-links a,
.support-section a {
  color: #66ccff;
  text-decoration: none;
  margin: 0 0.5rem;
}

.support-links a:hover,
.support-section a:hover {
  text-decoration: underline;
}

.support-section {
  text-align: center;
  padding: 1.5rem 0 2rem;
  font-size: 1.1rem;
  color: #eee;
}

/* Responsive */
@media (max-width: 980px) {
  .stream-grid {
    grid-template-columns: 1fr;
  }

  .stream-chat-wrap,
  .stream-grid > .stream-chat,
  .guestbook-box {
    max-width: none;
    width: 100%;
    height: 500px;
  }
}

@media (max-width: 640px) {
  .site-header h1 {
    font-size: 1.6rem;
  }

  .now-playing-bar,
  .widgets,
  .stream-grid {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}