
/* Oculta completamente o formulário, sem perder funcionalidade */
.hidden-form {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* STATUS AREA */
.status-area{
  max-width: 760px;
  margin: 14px auto 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #1e1e1e;
  color: #e9e9e9;
  border: 1px solid #333;
  font-size: 14px;
  line-height: 1.35;
  display: none;
}
.status--info  { background:#1e1e1e; border-color:#333; }
.status--ok    { background:#113116; border-color:#216b2a; }
.status--warn  { background:#3b2b0a; border-color:#8a6d1d; }
.status--error { background:#3c1818; border-color:#7a1d1d; }

/* Player on-demand */
.player-area { text-align:center; margin-top:20px; }
.play-btn, .close-btn {
  border:0; border-radius:10px; padding:12px 24px; font-size:17px; font-weight:700; cursor:pointer; transition:background .2s ease, opacity .25s ease;
  color:#fff;
}
.play-btn  { background:#ff0000; }
.play-btn:hover { background:#cc0000; }
.close-btn { background:#444; margin-left:10px; display:none; }
.close-btn:hover { filter:brightness(0.95); }

.video-wrapper {
  position:relative; width:100%; padding-bottom:56.25%; height:0; overflow:hidden;
  border-radius:12px; background:#000; margin-top:20px; box-shadow:0 0 12px rgba(0,0,0,.5);
}
.video-wrapper iframe { position:absolute; top:0; left:0; width:100%; height:100%; border:0; }
.hidden { display:none; }
.notice-cache { margin-top:8px; color:#aaa; font-size:12px; text-align:center; }

/* Botões visíveis */
.visible-download-buttons { text-align:center; margin:16px 0 4px; display:flex; gap:12px; justify-content:center; flex-wrap:wrap; transition:opacity .25s ease; }
.vbtn { padding:12px 18px; border-radius:10px; border:0; cursor:pointer; font-weight:700; color:#fff; transition:opacity .25s ease; }
.vbtn.mp3 { background:#444; }
.vbtn.mp4 { background:#444; }

/* Botões de download finais */
.download-actions { display:flex; gap:10px; align-items:center; flex-wrap:wrap; justify-content:center; }
.btn-download {
  display:inline-flex; align-items:center; gap:8px; background:#1f7a1f; color:#fff; padding:10px 14px;
  border-radius:10px; text-decoration:none; font-weight:700;
}
.btn-download:hover { filter:brightness(0.95); }
.btn-mp3 { background:#1f7a1f; }
.btn-mp4 { background:#1f4a7a; }
.small-note { color:#aaa; font-size:12px; }

body {
    background: #0f0f0f;
    color: #fff;
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0
}

.container {
    max-width: 860px;
    margin: 40px auto;
    padding: 20px
}

header {
    display: flex;
    align-items: center;
    margin-bottom: 30px
}

header h1 {
    color: #ff0000;
    font-size: 28px;
    font-weight: 700;
    margin: 0
}

header span {
    color: #aaa;
    font-size: 18px;
    margin-left: 8px
}

.search-box {
    background: #181818;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px
}

input[type="text"] {
    width: 100%;
    background: transparent;
    border: 1px solid #333;
    color: #fff;
    padding: 10px;
    border-radius: 8px
}

.mode-buttons {
    display: flex;
    gap: 10px;
    margin-top: 12px
}

.mode-buttons button {
    background: #ff0000;
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: 10px 18px;
    font-weight: 600;
    cursor: pointer
}

.preview-card {
    background: #181818;
    border: 1px solid #333;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 14px
}

.preview-content {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 18px;
    padding: 14px
}

.preview-thumb {
    width: 100%;
    background: #000;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 8px
}

.preview-title {
    margin: 8px 0 0;
    color: #fff;
    font-weight: 600;
    line-height: 1.35
}

.preview-meta {
    color: #aaa;
    font-size: 13px;
    margin-top: 6px
}

@media (max-width:720px) {
    .preview-content {
        grid-template-columns: 1fr
    }
}

.status-area {
    margin-top: 10px;
    padding: 12px 14px;
    background: #181818;
    border: 1px solid #333;
    border-radius: 8px;
    color: #aaa;
    display: none
}

.result-box {
    background: #181818;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px
}

.download-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    margin-top: 10px;
    flex-wrap: wrap
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 10px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(90deg, #ff0000 0%, #cc0000 100%);
    box-shadow: 0 8px 22px rgba(255, 0, 0, .35)
}

.btn-download .icon {
    font-size: 18px
}

/* Descrição (preview) com expandir/recolher */
.preview-meta {
    color: #aaa;
    font-size: 13px;
    margin-top: 6px;
    line-height: 1.5;
    white-space: pre-wrap;
    /* mantém quebras da descrição */
}

.desc-toggle {
    display: inline-block;
    margin-top: 6px;
    font-size: 12px;
    color: #ff7a7a;
    cursor: pointer;
    user-select: none;
    text-decoration: underline;
}

.desc-toggle:hover {
    opacity: 0.85;
}

/* área da descrição */
.desc-box {
    margin-top: 8px;
    background: #101010;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 10px 12px;
    color: #ccc;
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-wrap;
    max-height: 280px;
    overflow-y: auto;
}

.desc-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 5px;
}

.desc-actions button {
    background: #222;
    border: 1px solid #555;
    color: #ff7a7a;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
}

.desc-actions button:hover {
    background: #333;
}
.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.player-area {
  text-align: center;
  margin-top: 20px;
}

.play-btn {
  background: #ff0000;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 24px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}
.play-btn:hover {
  background: #cc0000;
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
  margin-top: 20px;
  box-shadow: 0 0 12px rgba(0,0,0,0.5);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.hidden {
  display: none;
}
/* Oculta completamente o formulário, sem perder funcionalidade */
.hidden-form {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* STATUS AREA */
.status-area{
  max-width: 760px;
  margin: 14px auto 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #1e1e1e;
  color: #e9e9e9;
  border: 1px solid #333;
  font-size: 14px;
  line-height: 1.35;
  display: none;
}
.status--info  { background:#1e1e1e; border-color:#333; }
.status--ok    { background:#113116; border-color:#216b2a; }
.status--warn  { background:#3b2b0a; border-color:#8a6d1d; }
.status--error { background:#3c1818; border-color:#7a1d1d; }

/* Player on-demand */
.player-area { text-align:center; margin-top:20px; }
.play-btn, .close-btn {
  border:0; border-radius:10px; padding:12px 24px; font-size:17px; font-weight:700; cursor:pointer; transition:background .2s ease, opacity .25s ease;
  color:#fff;
}
.play-btn  { background:#ff0000; }
.play-btn:hover { background:#cc0000; }
.close-btn { background:#444; margin-left:10px; display:none; }
.close-btn:hover { filter:brightness(0.95); }

.video-wrapper {
  position:relative; width:100%; padding-bottom:56.25%; height:0; overflow:hidden;
  border-radius:12px; background:#000; margin-top:20px; box-shadow:0 0 12px rgba(0,0,0,.5);
}
.video-wrapper iframe { position:absolute; top:0; left:0; width:100%; height:100%; border:0; }
.hidden { display:none; }
.notice-cache { margin-top:8px; color:#aaa; font-size:12px; text-align:center; }

/* Botões visíveis */
.visible-download-buttons { text-align:center; margin:16px 0 4px; display:flex; gap:12px; justify-content:center; flex-wrap:wrap; transition:opacity .25s ease; }
.vbtn { padding:12px 18px; border-radius:10px; border:0; cursor:pointer; font-weight:700; color:#fff; transition:opacity .25s ease; }
.vbtn.mp3 { background:#444; }
.vbtn.mp4 { background:#444; }

/* Botões de download finais */
.download-actions { display:flex; gap:10px; align-items:center; flex-wrap:wrap; justify-content:center; }
.btn-download {
  display:inline-flex; align-items:center; gap:8px; background:#1f7a1f; color:#fff; padding:10px 14px;
  border-radius:10px; text-decoration:none; font-weight:700;
}
.btn-download:hover { filter:brightness(0.95); }
.btn-mp3 { background:#1f7a1f; }
.btn-mp4 { background:#1f4a7a; }
.small-note { color:#aaa; font-size:12px; }