@font-face {
  font-family: 'SuperShiny';
  src: url('/fonts/SuperShiny.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

.catube-title, h1 {
  font-family: 'SuperShiny', cursive;
  font-size: 2.2rem;
  color: #e53935;
  letter-spacing: 0.03em;
  text-shadow: 0 3px 18px #fbb;
  margin-top: 1.2em;
  text-align: center;
}

html, body {
  background: #fff !important;
  color: #111 !important;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
}
nav {
  background: #fff;
  border-bottom: 1px solid #eee;
  box-shadow: 0 2px 12px #0001;
  padding: 0.45em 1.3em 0.45em 1.3em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 1000;
}
nav .brand {
  font-weight: 700;
  font-size: 1.16em;
  letter-spacing: 0.08em;
  color: #e53935;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.25em;
}
nav ul {
  display: flex;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
nav ul li a {
  color: #111;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.01em;
  transition: color 0.12s;
  padding-bottom: 2px;
}
nav ul li a:hover, nav ul li a.active {
  color: #e53935;
  border-bottom: 2.5px solid #e53935;
}
nav .right {
  display: flex;
  align-items: center;
  gap: 1.6em;
}
nav .right a {
  color: #1DA1F2;
  font-size: 1.32em;
  text-decoration: none;
  padding: 2px 0;
}
form#uploadForm {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  background: #fafafa;
  padding: 1rem 0.5rem;
  border-radius: 12px;
  margin: 0 0.7rem 2rem 0.7rem;
  border: 1.5px solid #ececec;
  box-shadow: 0 1px 10px #eee5;
}
#uploadForm input[type="file"] {
  background: #fff;
  color: #222;
  border: 1.1px solid #ddd;
  border-radius: 7px;
  padding: 0.38em 0.82em;
  font-size: 1em;
}
#uploadForm input[type="text"] {
  background: #fff;
  color: #111;
  border: 1.1px solid #ddd;
  border-radius: 7px;
  padding: 0.44em 1em;
  font-size: 1em;
  min-width: 140px;
}
#uploadForm button {
  background: #e53935;
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 0.52em 1.25em;
  font-size: 1.04em;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 12px #e539353a;
  cursor: pointer;
  transition: background 0.16s;
}
#uploadForm button:hover {
  background: #c62828;
}
#uploadStatus {
  text-align: center;
  margin: 0.5em 0 1em 0;
  min-height: 1.4em;
  font-size: 1.04em;
  color: #e53935;
}
.video-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 24px;
  padding: 0 1.2em 2.4em 1.2em;
  max-width: 1300px;
  margin: 0 auto;
}
.video-card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 2px 16px #e0e0e0cc;
  padding: 11px 13px 19px 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1.2px solid #ececec;
  min-width: 0;
  transition: box-shadow 0.2s, border-color 0.18s;
}
.video-card:hover {
  box-shadow: 0 8px 36px #e5393520;
  border-color: #e53935;
}
.video-card video {
  width: 100%;
  max-height: 224px;
  border-radius: 9px;
  background: #f3f3f3;
  margin-bottom: 0.5em;
  border: 1.1px solid #eee;
}
.video-card b {
  display: block;
  margin: 0.35em 0 0.8em 0;
  font-size: 1.13em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 98%;
  text-align: center;
  color: #222;
}
.video-card .controls-row {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  margin-bottom: 0.38em;
}
.video-card select {
  background: #fafafa;
  color: #111;
  border-radius: 7px;
  border: 1px solid #ddd;
  padding: 0.25em 0.75em;
  font-size: 1em;
  margin-right: 0.3em;
}
/* Twitter/Dexscreener widget section */
.twitter-dex-wrap {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px #ececec;
  padding: 1.1em 1.1em 1.8em 1.1em;
  margin: 1.3em auto 2.2em auto;
  max-width: 900px;
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  justify-content: space-between;
  align-items: flex-start;
  border: 1.2px solid #e6e6e6;
}
.twitter-dex-wrap > div {
  flex: 1 1 330px;
  min-width: 260px;
}
.twitter-timeline {
  border-radius: 12px !important;
  box-shadow: 0 1px 7px #ececec;
  background: #fff !important;
  color-scheme: light;
}
@media (max-width: 800px) {
  .video-list {
    grid-template-columns: 1fr;
    padding: 0 0.5em 2em 0.5em;
  }
  nav ul { gap: 13px; }
  form#uploadForm {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  h1 { font-size: 1.4rem; }
  .twitter-dex-wrap { flex-direction: column; gap: 1.15em; }
}
@media (max-width: 1200px) and (min-width: 801px) {
  .video-list {
    grid-template-columns: 1fr 1fr;
  }
}