.videocore-upload {
    --vc-accent: #2563eb;
    --vc-accent-hover: #1d4ed8;
    --vc-border: #e2e8f0;
    --vc-bg: #f8fafc;
    --vc-success: #059669;
    --vc-error: #dc2626;
    --vc-radius: 12px;

    max-width: 560px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1e293b;
}

.videocore-upload__header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.videocore-upload__title {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.videocore-upload__description {
    margin: 0;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
}

.videocore-upload__dropzone {
    position: relative;
    border: 2px dashed var(--vc-border);
    border-radius: var(--vc-radius);
    background: var(--vc-bg);
    padding: 2.5rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.videocore-upload__dropzone:hover,
.videocore-upload__dropzone:focus,
.videocore-upload__dropzone--dragover {
    border-color: var(--vc-accent);
    background: #eff6ff;
    outline: none;
}

.videocore-upload__dropzone--has-file {
    border-color: var(--vc-success);
    background: #ecfdf5;
}

.videocore-upload__input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.videocore-upload__dropzone-inner {
    pointer-events: none;
    position: relative;
    z-index: 1;
}

.videocore-upload__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #dbeafe;
    color: var(--vc-accent);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.videocore-upload__dropzone-text {
    margin: 0 0 0.25rem;
    font-weight: 600;
    font-size: 1rem;
}

.videocore-upload__dropzone-sub {
    margin: 0;
    color: #64748b;
    font-size: 0.875rem;
}

.videocore-upload__file-name {
    margin: 0.75rem 0 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--vc-success);
    word-break: break-all;
}

.videocore-upload__progress {
    margin-top: 1.25rem;
}

.videocore-upload__progress--hidden {
    display: none;
}

.videocore-upload__progress-bar {
    height: 6px;
    border-radius: 3px;
    background: #e2e8f0;
    overflow: hidden;
}

.videocore-upload__progress-bar::after {
    content: "";
    display: block;
    height: 100%;
    width: var(--vc-progress, 0%);
    background: var(--vc-accent);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.videocore-upload__progress-text {
    margin: 0.5rem 0 0;
    font-size: 0.8125rem;
    color: #64748b;
    text-align: center;
}

.videocore-upload__submit {
    display: block;
    width: 100%;
    margin-top: 1.25rem;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: var(--vc-radius);
    background: var(--vc-accent);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
}

.videocore-upload__submit:hover:not(:disabled) {
    background: var(--vc-accent-hover);
}

.videocore-upload__submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.videocore-upload__submit--ready {
    opacity: 1;
    cursor: pointer;
}

.videocore-upload__result,
.videocore-upload__error {
    margin-top: 1.25rem;
    padding: 1.25rem;
    border-radius: var(--vc-radius);
    font-size: 0.9375rem;
}

.videocore-upload__result--hidden,
.videocore-upload__error--hidden {
    display: none;
}

.videocore-upload__result {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.videocore-upload__error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.videocore-upload__result-title {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 700;
}

.videocore-upload__meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.videocore-upload__meta-grid li {
    background: rgba(255, 255, 255, 0.6);
    padding: 0.625rem 0.75rem;
    border-radius: 8px;
}

.videocore-upload__meta-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #047857;
    margin-bottom: 0.125rem;
}

.videocore-upload__meta-value {
    font-weight: 600;
    font-size: 0.9375rem;
}

.videocore-upload--login {
    text-align: center;
    padding: 2rem;
    background: var(--vc-bg);
    border-radius: var(--vc-radius);
    border: 1px solid var(--vc-border);
}

.videocore-upload__login-link {
    color: var(--vc-accent);
    font-weight: 600;
    text-decoration: none;
}

.videocore-upload__login-link:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .videocore-upload__meta-grid {
        grid-template-columns: 1fr;
    }
}
