/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: #121212;
    color: #e0e0e0;
}

/* HEADER */
header {
    background: #1f1f1f;
    color: #fff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-left span {
    font-weight: bold;
    font-size: 1rem;
}

.top-right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

header input[type="text"] {
    padding: 8px 10px;
    border-radius: 6px;
    border: none;
    min-width: 200px;
    background: #333;
    color: white;
}

header a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

header a:hover {
    text-decoration: underline;
}

#btn-upload {
    padding: 9px 14px;
    border: none;
    border-radius: 6px;
    background: #00cc66;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

/* MAIN */
main {
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* Grid com 2 colunas no desktop */
@media (min-width: 768px) {
    main {
        grid-template-columns: 1fr 1fr;
    }
}

/* CLIPE CARD */
.clipe {
    background: #1e1e1e;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.clipe h3 {
    margin-bottom: 5px;
    color: #ffffff;
}

.clipe small {
    color: #aaa;
}

.video video {
    width: 100%;
    max-height: 300px;
    border-radius: 8px;
    background: black;
}

/* BOTÕES */
.botoes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.botoes button,
.botoes a {
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    cursor: pointer;
}

.botoes button {
    background-color: #2196F3;
    color: white;
    border: none;
}

.botoes a {
    background-color: #4CAF50;
    color: white;
}

.botoes form {
    display: inline;
}

/* MODAL */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: #262626;
    padding: 25px;
    border-radius: 10px;
    max-width: 400px;
    width: 90%;
    position: relative;
    text-align: center;
    color: white;
}

.modal-content input,
.modal-content button {
    margin-top: 10px;
    padding: 10px;
    width: 100%;
    border-radius: 6px;
    border: 1px solid #444;
    background: #333;
    color: white;
}

.modal-content button {
    background-color: #00cc66;
    border: none;
    font-weight: bold;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #fff;
}

/* RESPONSIVO HEADER NO MOBILE */
@media (max-width: 600px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    .top-right {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    header input {
        width: 100%;
    }
}
