﻿/* Old-school 2005-ish YouTube inspired styling */
body {
  margin: 0;
  padding: 0;
  background: #d6dde3;
  background: linear-gradient(#e9eef2, #cfd7dd);
  font: 13px "Helvetica Neue", Tahoma, Arial, sans-serif;
  color: #1a1a1a;
}

a {
  color: #0b4f9c;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

#page {
  width: 980px;
  margin: 18px auto;
  background: #ffffff;
  border: 1px solid #b5b5b5;
  border-radius: 6px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

#masthead {
  background: #c00000;
  background: linear-gradient(#e20000, #b30000);
  color: #fff;
  padding: 12px 14px;
  border-bottom: 1px solid #8b0000;
  border-radius: 6px 6px 0 0;
}

#masthead .logo {
  font-size: 26px;
  font-weight: bold;
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
}

#masthead .logo-img {
  display: block;
  height: 86px;
  width: auto;
}

#masthead .tagline {
  font-size: 12px;
  color: #ffe9e9;
}

#masthead .bar {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

#searchBox {
  flex: 1;
  display: flex;
  min-width: 240px;
}

#searchBox input[type="text"] {
  flex: 1;
  padding: 6px 8px;
  border: 1px solid #7f7f7f;
  border-right: none;
  border-radius: 3px 0 0 3px;
  font-size: 13px;
}

#searchBox button {
  padding: 6px 12px;
  border: 1px solid #7f7f7f;
  border-left: none;
  background: #f6f6f6;
  background: linear-gradient(#ffffff, #e4e4e4);
  border-radius: 0 3px 3px 0;
  cursor: pointer;
  font-weight: bold;
}

#nav {
  background: #f0f0f0;
  background: linear-gradient(#f7f7f7, #dfdfdf);
  border-bottom: 1px solid #c8c8c8;
  padding: 8px 12px;
  font-size: 12px;
}

#nav a {
  margin-right: 12px;
  color: #0b4f9c;
}

#content {
  padding: 14px;
  overflow: hidden;
}

.column-left {
  width: 680px;
  float: left;
}

.column-right {
  width: 240px;
  float: right;
  background: #f4f4f4;
  background: linear-gradient(#fafafa, #ececec);
  border-left: 1px solid #d3d3d3;
  padding: 12px;
  box-sizing: border-box;
}

.section-title {
  font-size: 15px;
  font-weight: bold;
  margin: 2px 0 10px 0;
  color: #2a2a2a;
}

.video-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.video-card {
  overflow: hidden;
  padding: 10px 0;
  border-bottom: 1px solid #e2e2e2;
}

.video-card:last-child {
  border-bottom: none;
}

.video-thumb {
  float: left;
  width: 130px;
  height: 97px;
  margin-right: 10px;
  border: 1px solid #bdbdbd;
  background: #ddd center/cover no-repeat;
  box-shadow: inset 0 0 0 1px #fff, 0 1px 2px rgba(0, 0, 0, 0.2);
}

.video-body {
  overflow: hidden;
}

.video-title {
  font-size: 14px;
  font-weight: bold;
  margin: 0 0 4px 0;
}

.video-meta {
  font-size: 11px;
  color: #5a5a5a;
  margin-bottom: 6px;
}

.video-desc {
  font-size: 12px;
  color: #262626;
}

.sidebar-box {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #d6d6d6;
}

.sidebar-box:last-child {
  border-bottom: none;
}

.sidebar-title {
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 8px;
}

.sidebar-list {
  list-style: square;
  padding-left: 16px;
  margin: 0;
  color: #3c3c3c;
}

.community-layout {
  overflow: hidden;
}

@supports (display: flex) {
  .community-layout {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    overflow: visible;
  }

  .community-left,
  .community-feed,
  .community-right {
    float: none;
    margin: 0;
  }

  .community-left {
    flex: 0 0 180px;
  }

  .community-feed {
    flex: 1 1 520px;
    min-width: 0;
  }

  .community-right {
    flex: 0 0 220px;
  }
}

.community-left {
  float: left;
  width: 180px;
  margin-right: 10px;
}

.community-feed {
  float: left;
  width: 520px;
  margin-right: 10px;
}

.community-right {
  float: right;
  width: 220px;
  background: #f4f4f4;
  background: linear-gradient(#fafafa, #ececec);
  border-left: 1px solid #d3d3d3;
  padding: 12px;
  box-sizing: border-box;
}

.community-profile {
  text-align: center;
  margin-bottom: 8px;
}

.profile-avatar {
  width: 64px;
  height: 64px;
  margin: 0 auto 6px;
  border-radius: 12px;
  background: #cc0000;
  background: linear-gradient(#ff3a3a, #b30000);
  color: #fff;
  font-size: 24px;
  font-weight: bold;
  line-height: 64px;
}

.profile-avatar--blank {
  background: #f1f1f1;
  border: 1px solid #bdbdbd;
  color: transparent;
  box-shadow: inset 0 0 0 1px #ffffff;
}

.profile-name {
  font-weight: bold;
  font-size: 13px;
}

.profile-handle {
  font-size: 11px;
  color: #666;
}

.profile-stats {
  font-size: 11px;
  color: #444;
  line-height: 1.6;
  text-align: center;
}

.profile-actions {
  margin-top: 8px;
  text-align: center;
}

.composer-box {
  background: #fff;
  border: 1px solid #c6c6c6;
  padding: 8px;
  margin-bottom: 10px;
  border-radius: 4px;
}

.composer-title {
  font-weight: bold;
  margin-bottom: 6px;
}

.composer-box textarea {
  width: 100%;
  height: 70px;
  padding: 6px;
  border: 1px solid #b5b5b5;
  font: 12px "Helvetica Neue", Tahoma, Arial, sans-serif;
  box-sizing: border-box;
  resize: vertical;
}

.composer-actions {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.composer-actions button {
  padding: 5px 12px;
  border: 1px solid #7f7f7f;
  background: #efefef;
  background: linear-gradient(#ffffff, #e3e3e3);
  font-weight: bold;
  cursor: pointer;
  border-radius: 3px;
}

.composer-actions button:disabled {
  color: #999;
  cursor: default;
}

.post-card {
  background: #fff;
  border: 1px solid #d1d1d1;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 4px;
}

.post-header {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.post-avatar {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: #cc0000;
  background: linear-gradient(#ff3a3a, #b30000);
  color: #fff;
  font-weight: bold;
  line-height: 40px;
  text-align: center;
}

.post-meta {
  flex: 1;
}

.post-name {
  font-weight: bold;
  font-size: 13px;
}

.post-handle {
  font-weight: normal;
  color: #666;
  margin-left: 4px;
}

.post-time {
  font-size: 11px;
  color: #666;
  margin-top: 2px;
}

.post-body {
  font-size: 13px;
  margin-top: 8px;
}

.post-actions {
  margin-top: 8px;
  font-size: 12px;
}

.post-actions a {
  margin-right: 10px;
}

.post-actions a.post-like {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.post-actions .like-count {
  font-weight: bold;
  color: #444;
  min-width: 10px;
  text-align: right;
}

.post-actions .like-icon {
  width: 14px;
  height: 14px;
  vertical-align: middle;
}

.login-card {
  max-width: 420px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #c6c6c6;
  border-radius: 4px;
  padding: 16px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
}

.login-form {
  margin-top: 10px;
}

.login-row {
  margin-bottom: 10px;
}

.login-row label {
  display: block;
  font-weight: bold;
  margin-bottom: 4px;
}

.login-row input {
  width: 100%;
  padding: 7px 8px;
  border: 1px solid #b5b5b5;
  border-radius: 3px;
  font: 12px "Helvetica Neue", Tahoma, Arial, sans-serif;
  box-sizing: border-box;
}

.login-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.login-actions button {
  padding: 6px 12px;
  border: 1px solid #7f7f7f;
  background: #efefef;
  background: linear-gradient(#ffffff, #e3e3e3);
  font-weight: bold;
  cursor: pointer;
  border-radius: 3px;
}

.login-error {
  display: none;
  margin-top: 6px;
  padding: 6px 8px;
  background: #fff4f4;
  border: 1px solid #d5a0a0;
  color: #7a2b2b;
  border-radius: 3px;
  font-size: 12px;
}

.login-hint {
  margin-top: 10px;
  font-size: 11px;
  color: #666;
}

.player-area {
  background: #f8f8f8;
  background: linear-gradient(#ffffff, #f2f2f2);
  border: 1px solid #c6c6c6;
  padding: 12px;
  border-radius: 4px;
}

.player-frame {
  background: #000;
  width: 640px;
  height: 480px;
  margin: 0 auto 10px auto;
  border: 1px solid #999;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.player-frame video {
  width: 100%;
  height: 100%;
  background: #000;
}

.info-block {
  background: #fff;
  border: 1px solid #d1d1d1;
  padding: 8px;
  margin-top: 8px;
  border-radius: 3px;
}

.info-heading {
  font-weight: bold;
  margin-bottom: 4px;
}

.small-text {
  font-size: 11px;
  color: #555;
}

.button-link {
  display: inline-block;
  padding: 6px 10px;
  background: #f0f0f0;
  background: linear-gradient(#ffffff, #e2e2e2);
  border: 1px solid #a8a8a8;
  font-weight: bold;
  color: #0b4f9c;
  text-decoration: none;
  border-radius: 3px;
}

.footer {
  font-size: 11px;
  color: #555;
  padding: 12px 12px 14px;
  border-top: 1px solid #c8c8c8;
  background: #f2f2f2;
  background: linear-gradient(#f7f7f7, #e6e6e6);
  border-radius: 0 0 6px 6px;
}

.clear {
  clear: both;
}

@media (max-width: 600px) {
  #page {
    width: 100%;
    margin: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }

  #masthead .bar {
    flex-direction: column;
    align-items: stretch;
  }

  #searchBox {
    width: 100%;
    min-width: auto;
  }

  #nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  #nav a {
    margin-right: 0;
  }

  .column-left,
  .column-right {
    width: 100%;
    float: none;
    border: none;
    padding: 0;
  }

  .column-right {
    margin-top: 20px;
    background: transparent;
  }

  @supports (display: flex) {
    .community-layout {
      flex-direction: column;
    }
  }

  .community-left,
  .community-feed,
  .community-right {
    width: 100%;
    float: none;
    margin: 0 0 16px 0;
    flex: none;
  }

  .community-right {
    background: transparent;
    border: none;
    padding: 0;
  }

  .video-thumb {
    width: 100px;
    height: 75px;
  }

  .player-frame {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
  }

  .login-card {
    max-width: 100%;
    border: none;
    box-shadow: none;
    padding: 10px 0;
  }
}











