/* 抖音无水印下载站 - 样式 */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg-1: #161823;
    --bg-2: #1f2029;
    --bg-card: #25262f;
    --border: #2f303a;
    --text: #e7e7ea;
    --text-dim: #9a9ba3;
    --brand: #fe2c55;        /* 抖音粉 */
    --brand-2: #25f4ee;      /* 抖音青 */
    --success: #2bd576;
    --danger: #ff5572;
    --radius: 14px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC",
                 "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
    background: linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 100%);
    color: var(--text);
    min-height: 100vh;
    padding: 32px 16px;
    line-height: 1.55;
}

.container {
    max-width: 720px;
    margin: 0 auto;
}

.header {
    text-align: center;
    margin-bottom: 32px;
}
.header h1 {
    font-size: 32px;
    background: linear-gradient(90deg, var(--brand) 0%, var(--brand-2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 8px;
}
.header p {
    color: var(--text-dim);
    font-size: 14px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
}

.input-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}
.input-row input {
    flex: 1;
    background: var(--bg-1);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    color: var(--text);
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s;
}
.input-row input:focus {
    border-color: var(--brand);
}
.input-row input::placeholder {
    color: var(--text-dim);
}

.btn {
    background: linear-gradient(90deg, var(--brand) 0%, var(--brand-2) 100%);
    color: #0b0c10;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    padding: 12px 22px;
    cursor: pointer;
    font-size: 14px;
    transition: opacity 0.15s, transform 0.05s;
    white-space: nowrap;
}
.btn:hover { opacity: 0.92; }
.btn:active { transform: scale(0.98); }
.btn:disabled {
    background: var(--border);
    color: var(--text-dim);
    cursor: not-allowed;
    opacity: 0.7;
}

.hint {
    font-size: 12px;
    color: var(--text-dim);
}

.actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
}
.actions .btn-secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    font-weight: 500;
}
.actions .btn-secondary:hover {
    border-color: var(--brand-2);
    opacity: 1;
}

.status {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
    display: none;
}
.status.show { display: block; }
.status.loading { background: rgba(37, 244, 238, 0.08); border: 1px solid var(--brand-2); color: var(--brand-2); }
.status.error   { background: rgba(255, 85, 114, 0.08); border: 1px solid var(--danger); color: var(--danger); }
.status.success { background: rgba(43, 213, 118, 0.08); border: 1px solid var(--success); color: var(--success); }

.preview {
    display: none;
    margin-top: 20px;
}
.preview.show { display: block; }
.preview video {
    width: 100%;
    border-radius: 10px;
    background: #000;
    max-height: 480px;
}
.preview .meta {
    margin-top: 12px;
    color: var(--text-dim);
    font-size: 13px;
}
.preview .meta strong { color: var(--text); }
.preview .title-line {
    color: var(--text);
    font-size: 15px;
    margin-top: 8px;
    word-break: break-word;
}

.history {
    margin-top: 28px;
}
.history h3 {
    font-size: 14px;
    color: var(--text-dim);
    margin-bottom: 10px;
    font-weight: 500;
}
.history ul { list-style: none; }
.history li {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--text-dim);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.history .title-mini {
    color: var(--text);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.history button {
    background: transparent;
    color: var(--brand-2);
    border: 1px solid var(--brand-2);
    border-radius: 6px;
    padding: 4px 10px;
    cursor: pointer;
    font-size: 12px;
}
.history button:hover { background: var(--brand-2); color: var(--bg-1); }

.footer {
    text-align: center;
    color: var(--text-dim);
    font-size: 12px;
    margin-top: 32px;
    padding: 16px 0;
    line-height: 1.7;
}
.footer a { color: var(--text-dim); text-decoration: none; }
.footer a:hover { color: var(--text); }
