/* ──────────────────────────────────────────
   MyMyTool Video Downloader – Frontend CSS
   Dark theme matching mymytool.com
────────────────────────────────────────── */

:root {
    --mmtvd-bg:        #0a0a0a;
    --mmtvd-card:      #111111;
    --mmtvd-border:    rgba(255,255,255,0.08);
    --mmtvd-green:     #39d98a;
    --mmtvd-yellow:    #f5a623;
    --mmtvd-text:      #ffffff;
    --mmtvd-muted:     rgba(255,255,255,0.5);
    --mmtvd-input-bg:  rgba(255,255,255,0.05);
    --mmtvd-radius:    12px;
    --mmtvd-radius-sm: 8px;
}

.mmtvd-wrap {
    max-width: 780px;
    margin: 0 auto;
    padding: 2rem 1rem 3rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--mmtvd-text);
}

/* Hero */
.mmtvd-hero { text-align: center; margin-bottom: 2rem; }

.mmtvd-badge-top {
    display: inline-block;
    background: rgba(57,217,138,0.12);
    color: var(--mmtvd-green);
    border: 1px solid rgba(57,217,138,0.25);
    border-radius: 99px;
    font-size: 12px;
    padding: 4px 14px;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.mmtvd-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    line-height: 1.2;
    color: var(--mmtvd-text);
}
.mmtvd-green  { color: var(--mmtvd-green); }
.mmtvd-yellow { color: var(--mmtvd-yellow); }

.mmtvd-subtitle {
    font-size: 0.95rem;
    color: var(--mmtvd-muted);
    margin: 0;
}

/* Main card */
.mmtvd-card {
    background: var(--mmtvd-card);
    border: 1px solid var(--mmtvd-border);
    border-radius: var(--mmtvd-radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

/* Input row */
.mmtvd-input-row {
    display: flex;
    gap: 8px;
    margin-bottom: 1.25rem;
}

.mmtvd-input-row input {
    flex: 1;
    background: var(--mmtvd-input-bg);
    border: 1px solid var(--mmtvd-border);
    border-radius: var(--mmtvd-radius-sm);
    color: var(--mmtvd-text);
    font-size: 15px;
    padding: 13px 16px;
    outline: none;
    transition: border-color 0.2s;
    min-width: 0;
}
.mmtvd-input-row input::placeholder { color: var(--mmtvd-muted); }
.mmtvd-input-row input:focus { border-color: var(--mmtvd-green); }

.mmtvd-btn-paste {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--mmtvd-input-bg);
    border: 1px solid var(--mmtvd-border);
    border-radius: var(--mmtvd-radius-sm);
    color: var(--mmtvd-muted);
    font-size: 13px;
    padding: 0 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}
.mmtvd-btn-paste:hover {
    background: rgba(255,255,255,0.08);
    color: var(--mmtvd-text);
}

.mmtvd-btn-primary {
    display: flex;
    align-items: center;
    gap: 7px;
    background: var(--mmtvd-green);
    color: #000;
    border: none;
    border-radius: var(--mmtvd-radius-sm);
    font-size: 15px;
    font-weight: 600;
    padding: 13px 22px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}
.mmtvd-btn-primary:hover {
    background: #2fc478;
    transform: translateY(-1px);
}
.mmtvd-btn-primary:active { transform: translateY(0); }

/* Options row */
.mmtvd-options-row {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.mmtvd-option-group label {
    display: block;
    font-size: 11px;
    color: var(--mmtvd-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 7px;
    font-weight: 500;
}

.mmtvd-toggle-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mmtvd-tog {
    background: var(--mmtvd-input-bg);
    border: 1px solid var(--mmtvd-border);
    border-radius: 6px;
    color: var(--mmtvd-muted);
    font-size: 13px;
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.15s;
}
.mmtvd-tog:hover {
    border-color: rgba(57,217,138,0.3);
    color: var(--mmtvd-text);
}
.mmtvd-tog.active {
    background: rgba(57,217,138,0.12);
    border-color: var(--mmtvd-green);
    color: var(--mmtvd-green);
    font-weight: 600;
}

/* Result box */
.mmtvd-result {
    background: var(--mmtvd-card);
    border: 1px solid var(--mmtvd-border);
    border-radius: var(--mmtvd-radius);
    margin-bottom: 1rem;
    overflow: hidden;
}
.mmtvd-result-inner { padding: 1.5rem; }

.mmtvd-status {
    font-size: 14px;
    color: var(--mmtvd-muted);
    margin: 0 0 12px;
}

.mmtvd-progress {
    height: 3px;
    background: rgba(255,255,255,0.06);
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 1.25rem;
}
.mmtvd-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--mmtvd-green), var(--mmtvd-yellow));
    border-radius: 99px;
    transition: width 0.3s ease;
}

.mmtvd-success-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    color: var(--mmtvd-green);
    margin: 0 0 1rem;
    font-weight: 500;
}

.mmtvd-ep-used {
    margin-left: auto;
    font-size: 11px;
    background: rgba(57,217,138,0.1);
    border: 1px solid rgba(57,217,138,0.2);
    border-radius: 4px;
    padding: 2px 8px;
    color: var(--mmtvd-green);
    font-weight: 400;
}

.mmtvd-btn-download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--mmtvd-green);
    color: #000;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 20px;
    border-radius: var(--mmtvd-radius-sm);
    transition: all 0.2s;
}
.mmtvd-btn-download:hover {
    background: #2fc478;
    transform: translateY(-1px);
    color: #000;
}

.mmtvd-error-msg {
    font-size: 13px;
    color: #ff6b6b;
    margin: 0;
    padding: 12px;
    background: rgba(255,107,107,0.08);
    border: 1px solid rgba(255,107,107,0.2);
    border-radius: var(--mmtvd-radius-sm);
}

/* Platform chips */
.mmtvd-platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin: 1.5rem 0 1rem;
}
.mmtvd-chip {
    font-size: 12px;
    padding: 4px 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--mmtvd-border);
    border-radius: 99px;
    color: var(--mmtvd-muted);
    transition: all 0.15s;
}
.mmtvd-chip:hover {
    color: var(--mmtvd-text);
    border-color: rgba(255,255,255,0.15);
}

/* Disclaimer */
.mmtvd-disclaimer {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    font-size: 11px;
    color: rgba(255,255,255,0.25);
    margin: 0;
    text-align: center;
}

/* Mobile */
@media (max-width: 580px) {
    .mmtvd-title { font-size: 1.6rem; }
    .mmtvd-input-row { flex-wrap: wrap; }
    .mmtvd-input-row input { order: 1; width: 100%; }
    .mmtvd-btn-paste { order: 0; }
    .mmtvd-btn-primary { order: 2; width: 100%; justify-content: center; }
}
