/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BODY */
body {
    font-family: Arial, sans-serif;
    background: #0b0b0b;
    color: #fff;
    line-height: 1.4;
}

/* HEADER */
header {
    background: #000;
    padding: 15px 10px;
    text-align: center;
}

header h1 {
    font-size: 22px;
    margin-bottom: 8px;
}

nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

nav a {
    color: #aaa;
    text-decoration: none;
    font-size: 14px;
}

nav a:hover {
    color: #ff3b3b;
}

/* VIDEO GRID */
.videos {
    display: grid;
    grid-template-columns: 1fr; /* MOBILE */
    gap: 15px;
    padding: 15px;
}

/* CARD */
.card {
    background: #111;
    border-radius: 12px;
    padding: 10px;
}

/* THUMB */
.thumb {
    position: relative;
    cursor: pointer;
}

.thumb img {
    width: 100%;
    border-radius: 10px;
    display: block;
}

/* PLAY ICON */
.play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 36px;
    color: #fff;
    opacity: 0.9;
}

/* TIME BADGE */
.time {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.7);
    padding: 4px 7px;
    font-size: 12px;
    border-radius: 5px;
}

/* TEXT */
.card h3 {
    font-size: 15px;
    margin: 8px 0 4px;
}

.card p {
    font-size: 13px;
    color: #aaa;
}

/* BUTTON */
button {
    width: 100%;
    margin-top: 8px;
    background: #ff3b3b;
    border: none;
    padding: 12px;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}

button:hover {
    background: #e63232;
}

/* =====================
   TABLET (≥ 600px)
===================== */
@media (min-width: 600px) {
    header h1 {
        font-size: 24px;
    }

    .videos {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =====================
   LAPTOP (≥ 900px)
===================== */
@media (min-width: 900px) {
    .videos {
        grid-template-columns: repeat(3, 1fr);
    }

    header h1 {
        font-size: 26px;
    }
}

/* =====================
   DESKTOP (≥ 1200px)
===================== */
@media (min-width: 1200px) {
    .videos {
        grid-template-columns: repeat(4, 1fr);
        max-width: 1200px;
        margin: auto;
    }
}
