body {
    margin: 0;
    font-family: Verdana, sans-serif;

    /* Orange top (~10%) fading into red */
    background: linear-gradient(
        to bottom,
        orange 0%,
        orange 10%,
        #ff3c00 30%,
        #b30000 100%
    );

    color: black;
    text-align: center;
}

/* HEADER */
header {
    position: relative;
    display: flex;
    align-items: center;
    padding: 35px;
}

/* Center the title perfectly */
header h1 {
    z-index: 1;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 5rem;
    margin: 5px;
    letter-spacing: 0px;
}

.header-buttons {
  position: absolute;
  top: 5px;
  right: 15px;

  display: flex;
  flex-direction: column;
  gap: 10px;
}
.header-buttons button {
  padding: 10px 18px;
  font-size: 12px;
}
/* PLAYER */
.player-container {
    width: 80%;
    margin: 2px auto 10px auto;
}

video {
    width: 100%;
    border-radius: 10px;
}

/* THUMBNAILS */
.thumbnail-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.thumbnail-container img {
    width: 150px;
    cursor: ponter;
    border: 3px solid white;
}

/* LIBRARY */
.library {
    padding: 20px;
}

.category {
    margin-bottom: 30px;
}

.category-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.category-row img {
    width: 180px;
    cursor: pointer;
    border: 3px solid white;
}

/* FOOTER */
footer {
    margin-top: 30px;
}
.video-card {
    display: inline-block;
    text-align: center;
    margin: 10px;
}

.video-label {
    color: white;
    font-size: 20px;
    margin-top: 5px;

    font-weight: bold;
    letter-spacing: 0.5px;

    text-shadow: 
        -1px -1px 0 black,
         1px -1px 0 black,
        -1px  1px 0 black,
         1px  1px 0 black;
}
.video-genre {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.8;
  margin-bottom: 4px;
  text-align: center;
/* Changed Font Weight */
  font-weight: bold;
}

/* 📱 MOBILE FIX (small screens) */
@media (max-width: 700px) {

    header {
        flex-direction: column;
        align-items: center;
        padding-top: 20px;
        padding-bottom: 10px;
    }

    header h1 {
        position: static;   /* 🔥 THIS is the key fix */
        transform: none;
        margin-bottom: 10px;
    }

    .header-buttons {
        position: static;
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 15px;
        margin-top: 5px;
    }
    .header-buttons .social-btn {
        background: black;
        color: white;
        font-size: 20px;
        font-weight: bold;
    }

}