.post h1 {
  font-size: 24px;
  line-height: 1.25;
  margin: 14px 0 8px;
}

@media (max-width: 600px) {
  .post h1 {
    font-size: 21px;
    line-height: 1.25;
  }
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #111;
  color: #eee;
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

header {
  background: #000;
  border-bottom: 1px solid #2a2a2a;
  padding: 14px 16px;
  position: sticky;
  top: 0;
  z-index: 20;
}

header .brand {
  font-size: 28px;
  font-weight: 800;
  color: #ff3b30;
  letter-spacing: 1px;
}

nav {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 12px 0 4px;
  scrollbar-width: none;
}

nav::-webkit-scrollbar {
  display: none;
}

nav a {
  background: #1c1c1c;
  border: 1px solid #333;
  padding: 8px 12px;
  border-radius: 8px;
  white-space: nowrap;
  font-size: 14px;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px;
}

h1,
h2 {
  margin: 10px 0 18px;
}

.video-grid,
.posts-grid,
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 12px;
}

.video-card,
.post-card,
.card {
  min-width: 0;
}

.video-card img,
.post-card img,
.card img,
.video-card video,
.post-card video,
.card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: #222;
  border-radius: 3px;
}

.video-card h3,
.post-card h3,
.card h3 {
  margin: 8px 2px 5px;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 500;
  text-align: center;
}

.meta {
  color: #aaa;
  font-size: 14px;
  text-align: center;
}

.duration {
  background: #666;
  color: white;
  border-radius: 4px;
  padding: 2px 5px;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 28px 0;
}

.pagination a,
.pagination span {
  border: 1px solid #555;
  padding: 9px 13px;
  background: #222;
}

footer {
  border-top: 1px solid #333;
  margin-top: 30px;
  padding: 24px 16px 40px;
  text-align: center;
  color: #bbb;
  line-height: 1.6;
}

input,
textarea,
select,
button {
  font: inherit;
}

input,
textarea,
select {
  width: 100%;
  background: #1a1a1a;
  color: #fff;
  border: 1px solid #444;
  border-radius: 7px;
  padding: 11px;
  margin-bottom: 12px;
}

button {
  background: #e53030;
  color: white;
  border: 0;
  border-radius: 7px;
  padding: 10px 16px;
  cursor: pointer;
}

@media (min-width: 800px) {
  .video-grid,
  .posts-grid,
  .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .video-card h3,
  .post-card h3,
  .card h3 {
    font-size: 18px;
  }
}

.watch-btn {
  display: block;
  width: 100%;
  max-width: 420px;
  margin: 12px auto;
  padding: 14px 18px;
  background: #e53030;
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 17px;
  border-radius: 7px;
  text-decoration: none;
}

.watch-btn:hover {
  opacity: .9;
}
