body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #0f0f0f;
    color: white;
}

header {
    padding: 20px;
    background: #181818;
    text-align: center;
}

h1 {
    margin: 0;
    font-weight: 600;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px;
}

.card {
    background: #1e1e1e;
    border-radius: 8px;
    padding: 10px;
    transition: 0.2s ease;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-4px);
    background: #252525;
}

.card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 7px;
}

.card-title {
    margin: 10px 0 0;
    font-size: 16px;
    font-weight: 600;
}

.card-date {
    font-size: 13px;
    opacity: 0.6;
}

.video-page {
    padding: 30px;
    max-width: 900px;
    margin: auto;
}

video {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 12px;
}

.backBtn {
    padding: 10px;
    display: block;
    color: white;
    text-decoration: none;
}

.backBtn:hover {
    opacity: 0.7;
}

.logo {
    font-size: 2.5rem;
    font-weight: 900;
    margin: 20px 0;
}

.sky {
    color: white;
}

.tube {
    color: red;
}

.tube-box {
    background-color: red;
    color: white;
    padding: 5px 5px;
    border-radius: 7px;
    font-weight: bold;
}


@media (max-width: 1000px) {
  #videoGrid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  #videoGrid {
    grid-template-columns: 1fr;
  }
}

.search-box {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.search-box input {
  width: 300px;
  padding: 10px;
  border-radius: 999px;
  border: none;
  outline: none;
}

.search-box button {
  padding: 10px 20px;
  border: none;
  background: red;
  color: white;
  border-radius: 0 20px 20px 0;
  cursor: pointer;
}

.search-box button:hover {
  background: darkred;
}


.logo-link {
  text-decoration: none;
}


.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.profile-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #3ea6ff; /* A nice blue */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
}

.login-btn {
    background: transparent;
    border: 1px solid #3ea6ff;
    color: #3ea6ff;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
}

/* --- Fancy Blue/White Like Button --- */

.right-meta {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Base style for both buttons */
.btn-action {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    border-radius: 30px;
    border: 1px solid rgba(62, 166, 255, 0.3);
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

/* Fancy Blue & White Like Button */
.like-btn {
    background: rgba(62, 166, 255, 0.1); /* Soft glass blue */
    color: #ffffff;
}

.like-btn:hover {
    background: rgba(62, 166, 255, 0.2);
    border-color: #3ea6ff;
    color: #3ea6ff; /* Text turns blue on hover */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(62, 166, 255, 0.3);
}

/* The "Fancy" Active State */
.like-btn.active {
    background: #3ea6ff; /* Solid vibrant blue */
    color: #ffffff;      /* Pure white text */
    border-color: #ffffff;
    box-shadow: 0 0 20px rgba(62, 166, 255, 0.5);
}

/* Subscribe Button - Clean White/Red Contrast */
.sub-btn {
    background: #ffffff;
    color: #0f0f0f;
    border: none;
}

.sub-btn:hover {
    background: #ff0000;
    transform: scale(1.05);
}

.sub-btn.subscribed {
    background: #272727;
    color: #aaaaaa;
}
