/* GLOBAL */
body {
  background: #e9e9e9;
  font-family: Arial, sans-serif;
  color: #333;
}

#page {
  width: 1020px;
  margin: 0 auto;
}

/* HEADER */
#top-header {
  background: linear-gradient(#fdfdfd, #f0f0f0);
  border-bottom: 1px solid #ccc;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 28px;
  font-weight: bold;
  color: #444;
  text-shadow: 0 1px 0 #fff;
}

.logo span {
  color: #6441a5;
}

.nav a {
  margin-right: 15px;
  color: #444;
  text-decoration: none;
  font-size: 14px;
}

.nav a:hover {
  text-decoration: underline;
}

.user-controls {
  display: flex;
  gap: 6px;
}

.search {
  padding: 4px 6px;
  border: 1px solid #bbb;
  background: #fff;
}

/* BUTTONS */
.btn {
  padding: 5px 10px;
  border-radius: 3px;
  border: 1px solid #aaa;
  background: linear-gradient(#ffffff, #dddddd);
  cursor: pointer;
  font-size: 13px;
  box-shadow: 0 1px 0 #fff inset;
}

.btn:hover {
  background: linear-gradient(#ffffff, #cccccc);
}

.btn.purple {
  background: linear-gradient(#b49ce6, #8a6bcf);
  border-color: #6d4fb8;
  color: #fff;
  text-shadow: 0 -1px 0 #5a3f9a;
}

.btn.purple:hover {
  background: linear-gradient(#c3aef0, #8a6bcf);
}

.btn.small {
  padding: 4px 8px;
  font-size: 12px;
}

.btn.full {
  width: 100%;
}

/* FOLLOW BUTTON (slightly different style) */
.follow-btn {
  background: linear-gradient(#fefefe, #e0e0e0);
}

/* CHANNEL BAR */
#channel-bar {
  background: #fff;
  border-bottom: 1px solid #ccc;
  padding: 12px;
  display: flex;
  justify-content: space-between;
}

#channel-bar h1 {
  font-size: 20px;
  margin-bottom: 4px;
}

.meta {
  font-size: 12px;
  color: #666;
  display: flex;
  gap: 12px;
  font-family: Verdana, sans-serif;
}

.live {
  background: #d9534f;
  color: #fff;
  padding: 2px 6px;
  border-radius: 3px;
}

/* LAYOUT */
#content {
  display: grid;
  grid-template-columns: 700px 300px;
  gap: 20px;
  margin-top: 15px;
}

/* BANNER */
.channel-banner {
  background: #ddd;
  border: 1px solid #bbb;
  padding: 10px;
  margin-bottom: 10px;
  text-align: center;
  font-size: 13px;
}

/* VIDEO COLUMN */
.video-box {
  border: 1px solid #bbb;
  background: #fff;
}

.video-titlebar {
  background: linear-gradient(#f5f5f5, #e0e0e0);
  padding: 6px;
  border-bottom: 1px solid #ccc;
  font-weight: bold;
  font-size: 13px;
}

.video-area {
  position: relative;
  height: 390px;
  background: #000;
  color: #aaa;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* FLASH-STYLE CONTROLS */
.video-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 32px;
  background: linear-gradient(#222, #111);
  border-top: 1px solid #444;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 8px;
  font-size: 12px;
}

.control-left,
.control-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ctrl-btn {
  background: #333;
  border: 1px solid #555;
  color: #eee;
  padding: 2px 6px;
  font-size: 11px;
  cursor: pointer;
}

.ctrl-btn:hover {
  background: #444;
}

.volume-bar {
  width: 80px;
  height: 6px;
  background: #555;
  border-radius: 3px;
  overflow: hidden;
}

.volume-level {
  width: 60%;
  height: 100%;
  background: #a0d468;
}

/* TABS */
.tab-bar {
  margin-top: 10px;
  display: flex;
}

.tab {
  padding: 6px 12px;
  background: linear-gradient(#eeeeee, #dcdcdc);
  border: 1px solid #bbb;
  border-bottom: none;
  cursor: pointer;
  font-size: 13px;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  margin-right: 2px;
}

.tab.active {
  background: #fff;
  border-bottom: 1px solid #fff;
  font-weight: bold;
}

.tab-content {
  background: #fff;
  border: 1px solid #bbb;
  padding: 12px;
  margin-top: -1px;
  display: none;
}

.tab-content.active {
  display: block;
}

/* MODULES */
.module-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 15px;
}

.module {
  background: #f7f7f7;
  border: 1px solid #ccc;
}

.module-header {
  background: linear-gradient(#f5f5f5, #e5e5e5);
  padding: 6px;
  border-bottom: 1px solid #ccc;
  font-weight: bold;
  font-size: 12px;
  font-family: Verdana, sans-serif;
}

.module-body {
  padding: 8px;
  font-size: 12px;
  font-family: Verdana, sans-serif;
}

.module-body ul {
  list-style: none;
  padding-left: 0;
}

.module-body li {
  margin-bottom: 5px;
}

.module-body a {
  color: #6441a5;
  text-decoration: none;
}

.module-body a:hover {
  text-decoration: underline;
}

/* SIDEBAR COLUMN */
#sidebar-column {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* CHAT COLUMN */
#chat-column {
  border: 1px solid #bbb;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.chat-header {
  background: linear-gradient(#f5f5f5, #e0e0e0);
  padding: 6px;
  border-bottom: 1px solid #ccc;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-family: Verdana, sans-serif;
}

.chat-box {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  font-size: 11px;
  font-family: Verdana, sans-serif;
}

.msg {
  margin-bottom: 4px;
}

.user {
  color: #6441a5;
  font-weight: bold;
}

/* EMOTES */
.emote {
  width: 28px;
  height: 28px;
  vertical-align: middle;
  display: inline-block;
}

.emote-kappa {
  background: url("emotes/kappa.png") no-repeat center center;
  background-size: contain;
}

.emote-biblethump {
  background: url("emotes/biblethump.png") no-repeat center center;
  background-size: contain;
}

.emote-BrokenMega {
  background: url("emotes/BrokenMega.png") no-repeat center center;
  background-size: contain;
}

/* CHAT INPUT */
.chat-input {
  border-top: 1px solid #ccc;
  padding: 10px;
}

.chat-input textarea {
  width: 100%;
  height: 60px;
  border: 1px solid #bbb;
  padding: 6px;
  resize: none;
  font-size: 11px;
  font-family: Verdana, sans-serif;
}

/* SIDEBAR MODULES */
.sidebar-modules .module {
  margin-top: 0;
}

/* FOOTER */
#footer {
  margin-top: 20px;
  padding: 12px;
  background: linear-gradient(#fdfdfd, #f0f0f0);
  border-top: 1px solid #ccc;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

#footer a {
  color: #555;
  text-decoration: none;
}

#footer a:hover {
  text-decoration: underline;
}
