/**
 * 動画投稿フォーム用CSS
 *
 * @package Arkhe_Child
 */

.tsuma-video-upload {
    max-width: 640px;
    margin: 0 auto;
}

.tsuma-video-upload__limit {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: #f5f5f5;
    border-radius: 4px;
    font-size: 0.95rem;
}

.tsuma-video-upload__form {
    display: grid;
    gap: 1.25rem;
}

.tsuma-field label,
.tsuma-field legend {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.tsuma-field input[type="text"],
.tsuma-field input[type="file"],
.tsuma-field select {
    width: 100%;
    max-width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.tsuma-field__row {
    margin-bottom: 0.75rem;
}

.tsuma-field__help {
    margin-top: 0.35rem;
    font-size: 0.85rem;
    color: #666;
}

.tsuma-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-weight: normal;
    cursor: pointer;
}

.tsuma-tag-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.5rem;
    max-height: 240px;
    overflow-y: auto;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.tsuma-tag-item {
    margin: 0;
}

.required {
    color: #c00;
}

.tsuma-upload-progress {
    margin-top: 0.5rem;
}

.tsuma-upload-progress__bar {
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.tsuma-upload-progress__fill {
    display: block;
    height: 100%;
    width: 0;
    background: #2271b1;
    transition: width 0.2s ease;
}

.tsuma-upload-progress__text {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #444;
}

.tsuma-upload-message {
    padding: 0.75rem 1rem;
    border-radius: 4px;
}

.tsuma-upload-message.is-success {
    background: #edf7ed;
    color: #1e4620;
    border: 1px solid #c8e6c9;
}

.tsuma-upload-message.is-error {
    background: #fdecea;
    color: #611a15;
    border: 1px solid #f5c6cb;
}

.tsuma-upload-submit {
    padding: 0.75rem 1.5rem;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
}

.tsuma-upload-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.tsuma-upload-notice {
    padding: 1rem;
    border-radius: 4px;
}

.tsuma-upload-notice--warning {
    background: #fff8e5;
    border: 1px solid #f0d58c;
}
