/* ===== BODY & FONT ===== */
body {
    margin: 0;
    font-family: "Arial", sans-serif;
    background: linear-gradient(180deg, #d9f0ff, #b7ddff);
    color: #0f3c80;
}

/* ===== HEADER ===== */
.header {
    text-align: center;
    padding: 30px 0;
    background: #3b8cff;
    color: white;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.header .logo {
    width: auto;          
    max-width: 300px;     
    height: auto;
    display: block;
    margin: 0 auto 15px;

    /* เอา box-shadow เดิมออก */
    box-shadow: none;

    /* ใช้ filter drop-shadow แทน */
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.4));

    transition: 0.3s;
}

.header .logo:hover {
    transform: scale(1.03);
    filter: drop-shadow(0 6px 15px rgba(0,0,0,0.45));
}

.header h1 {
    font-size: 32px;
    margin: 0;
    color: white;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* ===== HERO / INTRO ===== */
.hero {
    text-align: center;
    padding: 20px;
    font-size: 16px;
    background: #d0ebff;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.05);
}

/* ===== SEARCH BAR ===== */
.search-container {
    display: flex;
    justify-content: center;
    padding: 15px;
}

#searchInput {
    width: 100%;
    max-width: 400px;
    padding: 12px 15px;
    border-radius: 12px;
    border: none;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    outline: none;
    font-size: 16px;
}

/* ===== SORT BUTTONS ===== */
.sort-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding-bottom: 15px;
}

.sort-btn {
    padding: 10px 18px;
    border: none;
    border-radius: 10px;
    background: #3b8cff;
    color: white;
    cursor: pointer;
    font-size: 14px;
    transition: 0.25s;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.sort-btn:hover {
    background: #1c6fe6;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* ===== VIDEO GRID ===== */
.videos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
}

/* ===== VIDEO CARD ===== */
.card {
    background: white;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    transition: 0.25s;
    text-align: center;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

.thumb {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
}

/* ===== INFO SECTION ===== */
.info h2 {
    font-size: 16px;
    margin: 10px 0;
    color: #064c99;
}

/* ===== PLAY BUTTON ===== */
.btn {
    background: #0d8eff;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: 0.2s;
}

.btn:hover {
    background: #056ed9;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ===== FOOTER ===== */
footer {
    text-align: center;
    padding: 20px;
    font-size: 14px;
    color: #0f3c80aa;
}